Stop weather being regenerated on save load

pull/230/head
Xavion3 2024-04-22 02:43:50 +10:00 committed by Samuel H
parent 0e9881e351
commit 24c2e18ed7
1 changed files with 2 additions and 1 deletions

View File

@ -794,6 +794,7 @@ export class EncounterPhase extends BattlePhase {
pokemon.resetBattleData(); pokemon.resetBattleData();
} }
if (!this.loaded)
this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena), false); this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena), false);
const enemyField = this.scene.getEnemyField(); const enemyField = this.scene.getEnemyField();