Revert "Fix softlock with wild switch out moves"

This reverts commit 2ce74716f7.
This commit is contained in:
Flashfyre 2024-03-07 07:05:11 -05:00
parent 2ce74716f7
commit 9ff7a95dc0
1 changed files with 1 additions and 1 deletions

View File

@ -2806,7 +2806,7 @@ export class VictoryPhase extends PokemonPhase {
}
}
if (!this.scene.getEnemyParty().find(p => this.scene.currentBattle.battleType ? !p?.isFainted(true) : p.isActive(true))) {
if (!this.scene.getEnemyParty().filter(p => !p?.isFainted(true)).length) {
this.scene.pushPhase(new BattleEndPhase(this.scene));
if (this.scene.currentBattle.battleType === BattleType.TRAINER)
this.scene.pushPhase(new TrainerVictoryPhase(this.scene));