Fix softlock with switch out moves used on player

This commit is contained in:
Flashfyre committed 2024-03-28 00:05:48 -04:00
1 parent 211d8d3636
commit 2cc38ac2cb
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -2096,7 +2096,7 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
return resolve(false);
const switchOutTarget = this.user ? user : target;
if (switchOutTarget instanceof PlayerPokemon) {
(switchOutTarget as PlayerPokemon).switchOut(this.batonPass).then(() => resolve(true));
(switchOutTarget as PlayerPokemon).switchOut(this.batonPass, true).then(() => resolve(true));
return;
} else if (user.scene.currentBattle.battleType) {
switchOutTarget.resetTurnData();