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,7 +794,8 @@ export class EncounterPhase extends BattlePhase {
pokemon.resetBattleData();
}
this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena), false);
if (!this.loaded)
this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena), false);
const enemyField = this.scene.getEnemyField();
this.scene.tweens.add({