From b057fcd7154e5b6f8c51545d2df01e8d86452c35 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:06:01 +0100 Subject: [PATCH] Switch phase does not assume that .leaveField() has been called anymore --- src/phases/switch-phase.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/phases/switch-phase.ts b/src/phases/switch-phase.ts index 34b70aeaf63..215164d8374 100644 --- a/src/phases/switch-phase.ts +++ b/src/phases/switch-phase.ts @@ -53,11 +53,6 @@ export class SwitchPhase extends BattlePhase { return super.end(); } - // Check if there is any space still in field - if (this.isModal && globalScene.getPlayerField().filter(p => p.isAllowedInBattle() && p.isActive(true)).length >= globalScene.currentBattle.getBattlerCount()) { - return super.end(); - } - // Override field index to 0 in case of double battle where 2/3 remaining legal party members fainted at once const fieldIndex = globalScene.currentBattle.getBattlerCount() === 1 || globalScene.getPokemonAllowedInBattle().length > 1 ? this.fieldIndex : 0;