Fix for Fake Out/U-turn bug

This commit is contained in:
snoopy369 2024-04-15 10:33:27 -07:00 committed by GitHub
parent c1d641251b
commit 3695af5e4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2640,6 +2640,8 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
// Switch out logic for the battle type
switchOutTarget.resetTurnData();
switchOutTarget.resetSummonData();
// Decrement turns in play by one to account for the turns being incremented at the end of the current turn
switchOutTarget.battleSummonData.turnCount --;
switchOutTarget.hideInfo();
switchOutTarget.setVisible(false);
switchOutTarget.scene.field.remove(switchOutTarget);