From b6603e2c6c33d9a9738a71fce052d48091c880f7 Mon Sep 17 00:00:00 2001 From: Madi Simpson Date: Sun, 5 May 2024 09:13:53 -0700 Subject: [PATCH] move: fix issue with self switch moves causing softlocks --- src/data/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 7df69d6cf18..4b83444d703 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -2977,7 +2977,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr { return new Promise(resolve => { // Check if the move category is not STATUS or if the switch out condition is not met - if (!this.getCondition()(user, target, move)) { + if (!this.getSwitchOutCondition()(user, target, move)) { //Apply effects before switch out i.e. poison point, flame body, etc applyPostDefendAbAttrs(PostDefendContactApplyStatusEffectAbAttr, target, user, new PokemonMove(move.id), null); return resolve(false);