mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 20:32:17 +02:00
harsh weather can override harsh weather
This commit is contained in:
parent
eeb20bbd34
commit
254352fc34
@ -1489,6 +1489,14 @@ export class PostSummonWeatherChangeAbAttr extends PostSummonAbAttr {
|
|||||||
if (!pokemon.scene.arena.weather?.isImmutable())
|
if (!pokemon.scene.arena.weather?.isImmutable())
|
||||||
return pokemon.scene.arena.trySetWeather(this.weatherType, true);
|
return pokemon.scene.arena.trySetWeather(this.weatherType, true);
|
||||||
|
|
||||||
|
if (pokemon.scene.arena.weather?.isImmutable())
|
||||||
|
switch (this.weatherType) {
|
||||||
|
case WeatherType.HEAVY_RAIN:
|
||||||
|
case WeatherType.HARSH_SUN:
|
||||||
|
case WeatherType.STRONG_WINDS:
|
||||||
|
return pokemon.scene.arena.trySetWeather(this.weatherType, true);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user