Fix softlock with Flip Turn and similar moves

pull/16/head
Flashfyre 2024-02-14 19:43:59 -05:00
parent f2e5a2eb34
commit ed1d473c49
1 changed files with 1 additions and 1 deletions

View File

@ -1763,7 +1763,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
user.scene.queueMessage(getPokemonMessage(switchOutTarget, ' fled!'), null, true, 500);
}
if (move.category === MoveCategory.STATUS && !switchOutTarget.getAlly()?.isActive(true)) {
if (!switchOutTarget.getAlly()?.isActive(true)) {
user.scene.clearEnemyHeldItemModifiers();
user.scene.pushPhase(new BattleEndPhase(user.scene));