Fix battle data not resetting properly
parent
12b1d23110
commit
597a08a196
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue