From 597a08a19670699b87fcf6a2e676d963ce65fb86 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 26 Feb 2024 15:14:47 -0500 Subject: [PATCH] Fix battle data not resetting properly --- src/phases.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 4f7a118a185..e8482fda28d 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -705,6 +705,11 @@ export class NextEncounterPhase extends EncounterPhase { doEncounter(): void { this.scene.playBgm(undefined, true); + for (let pokemon of this.scene.getParty()) { + if (pokemon) + pokemon.resetBattleData(); + } + this.scene.arenaNextEnemy.setVisible(true); const enemyField = this.scene.getEnemyField();