Fix immutable weather conditions expiring
This commit is contained in:
1 parent
5ebc351e4f
commit
7fc4dbce85
3 files changed
+4
-5
No files matched your search
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user