mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 15:39:27 +02:00
Fix battle data not resetting properly
This commit is contained in:
parent
12b1d23110
commit
597a08a196
@ -705,6 +705,11 @@ export class NextEncounterPhase extends EncounterPhase {
|
|||||||
doEncounter(): void {
|
doEncounter(): void {
|
||||||
this.scene.playBgm(undefined, true);
|
this.scene.playBgm(undefined, true);
|
||||||
|
|
||||||
|
for (let pokemon of this.scene.getParty()) {
|
||||||
|
if (pokemon)
|
||||||
|
pokemon.resetBattleData();
|
||||||
|
}
|
||||||
|
|
||||||
this.scene.arenaNextEnemy.setVisible(true);
|
this.scene.arenaNextEnemy.setVisible(true);
|
||||||
|
|
||||||
const enemyField = this.scene.getEnemyField();
|
const enemyField = this.scene.getEnemyField();
|
||||||
|
Loading…
Reference in New Issue
Block a user