[Bug] removing destroy() calls on enemy pokemon after BattleEndPhase and breaks endless %50 waves (#3461)

This commit is contained in:
DustinLin 2024-08-09 22:27:22 -07:00 committed by GitHub
parent e820163505
commit 638a0a66b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -2581,15 +2581,6 @@ export class BattleEndPhase extends BattlePhase {
this.scene.updateModifiers().then(() => this.end()); this.scene.updateModifiers().then(() => this.end());
} }
end() {
// removing pokemon at the end of a battle
for (const p of this.scene.getEnemyParty()) {
p.destroy();
}
super.end();
}
} }
export class NewBattlePhase extends BattlePhase { export class NewBattlePhase extends BattlePhase {