[Bug] Weather should be reset upon arena reset (#3301)

* `resetArenaEffects()` should also reset weather

* Update function doc
This commit is contained in:
NightKev 2024-08-02 19:29:07 -07:00 committed by GitHub
parent fc8b708785
commit e1812466a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -639,9 +639,13 @@ export class Arena {
}
/**
* Clears terrain and arena tags when entering new biome or trainer battle.
* Clears weather, terrain and arena tags when entering new biome or trainer battle.
*/
resetArenaEffects(): void {
// Don't reset weather if a Biome's permanent weather is active
if (this.weather?.turnsLeft !== 0) {
this.trySetWeather(WeatherType.NONE, false);
}
this.trySetTerrain(TerrainType.NONE, false, true);
this.removeAllTags();
}