Fix immutable weather conditions expiring

This commit is contained in:
Flashfyre committed 2024-04-05 23:45:31 -04:00
1 parent 5ebc351e4f
commit 7fc4dbce85
3 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -269,9 +269,8 @@ export class Arena {
trySetWeather(weather: WeatherType, hasPokemonSource: boolean): boolean {
// override hook for debugging
if (WEATHER_OVERRIDE) {
if (WEATHER_OVERRIDE)
return this.trySetWeatherOverride(WEATHER_OVERRIDE);
}
if (this.weather?.weatherType === (weather || undefined))
return false;