From 24c2e18ed794816af1336cd8f2d979629c2f3a58 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Mon, 22 Apr 2024 02:43:50 +1000 Subject: [PATCH] Stop weather being regenerated on save load --- src/phases.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index ccb83cc29..3399838cb 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -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({