[Bug] Fix bug in doubles after 1 opponent is phazed (#2419)
* Hotfix uturn with kings rock * Hotfix for crashing after phazing away a doubles opponent * Hotfix for crashing after phazing away a doubles opponent
This commit is contained in:
parent
3d9b134332
commit
cb5cedac84
|
@ -2484,6 +2484,9 @@ function getSheerForceHitDisableAbCondition(): AbAttrCondition {
|
|||
|
||||
function getWeatherCondition(...weatherTypes: WeatherType[]): AbAttrCondition {
|
||||
return (pokemon: Pokemon) => {
|
||||
if (!pokemon.scene?.arena) {
|
||||
return false;
|
||||
}
|
||||
if (pokemon.scene.arena.weather?.isEffectSuppressed(pokemon.scene)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue