mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
added exeption for Weathertype.NONE
This commit is contained in:
parent
4a1e562e57
commit
995c970e7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user