From 995c970e7a3c8d7fda59ea5129e9fb24357b0658 Mon Sep 17 00:00:00 2001 From: Mikhail-Shueb Date: Thu, 6 Mar 2025 11:35:53 +0000 Subject: [PATCH] added exeption for Weathertype.NONE --- src/field/arena.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/arena.ts b/src/field/arena.ts index 10f4d8f6e0e..bd42a138b3d 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)) { + if (this.weather?.isImmutable() && (weather !== WeatherType.HARSH_SUN && weather !== WeatherType.HEAVY_RAIN && weather !== WeatherType.STRONG_WINDS && weather !== WeatherType.NONE)) { globalScene.unshiftPhase(new CommonAnimPhase(undefined, undefined, CommonAnim.SUNNY + (oldWeatherType - 1), true)); globalScene.queueMessage(getLegendaryWeatherContinuesMessage(oldWeatherType)!); return false;