mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 15:00:55 +00:00
[Bug] Weather should be reset upon arena reset (#3301)
* `resetArenaEffects()` should also reset weather * Update function doc
This commit is contained in:
parent
fc8b708785
commit
e1812466a8
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user