mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-16 17:27:41 +00:00
[Bug] removing destroy() calls on enemy pokemon after BattleEndPhase and breaks endless %50 waves (#3461)
This commit is contained in:
parent
e820163505
commit
638a0a66b5
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user