Fix battle data not resetting properly

pull/16/head
Flashfyre 2024-02-26 15:14:47 -05:00
parent 12b1d23110
commit 597a08a196
1 changed files with 5 additions and 0 deletions

View File

@ -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();