diff --git a/src/field/arena.ts b/src/field/arena.ts index 6091f0a9715..8ab21606b99 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() && (![ WeatherType.HARSH_SUN, WeatherType.HEAVY_RAIN, WeatherType.STRONG_WINDS, WeatherType.NONE ].contains(weather))) { + if (this.weather?.isImmutable() && (![ WeatherType.HARSH_SUN, WeatherType.HEAVY_RAIN, WeatherType.STRONG_WINDS, WeatherType.NONE ].includes(weather))) { globalScene.unshiftPhase(new CommonAnimPhase(undefined, undefined, CommonAnim.SUNNY + (oldWeatherType - 1), true)); globalScene.queueMessage(getLegendaryWeatherContinuesMessage(oldWeatherType)!); return false;