diff --git a/src/field/arena.ts b/src/field/arena.ts index bd42a138b3d..6091f0a9715 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -274,7 +274,7 @@ export class Arena { const oldWeatherType = this.weather?.weatherType || WeatherType.NONE; - if (this.weather?.isImmutable() && (weather !== WeatherType.HARSH_SUN && weather !== WeatherType.HEAVY_RAIN && weather !== WeatherType.STRONG_WINDS && weather !== WeatherType.NONE)) { + if (this.weather?.isImmutable() && (![ WeatherType.HARSH_SUN, WeatherType.HEAVY_RAIN, WeatherType.STRONG_WINDS, WeatherType.NONE ].contains(weather))) { globalScene.unshiftPhase(new CommonAnimPhase(undefined, undefined, CommonAnim.SUNNY + (oldWeatherType - 1), true)); globalScene.queueMessage(getLegendaryWeatherContinuesMessage(oldWeatherType)!); return false;