harsh weather can override harsh weather

pull/280/head
gMak64 2024-04-24 18:55:13 -04:00 committed by Benjamin Odom
parent eeb20bbd34
commit 254352fc34
1 changed files with 8 additions and 0 deletions

View File

@ -1489,6 +1489,14 @@ export class PostSummonWeatherChangeAbAttr extends PostSummonAbAttr {
if (!pokemon.scene.arena.weather?.isImmutable())
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;
}
}