mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Fix for Fake Out/U-turn bug
This commit is contained in:
parent
c1d641251b
commit
3695af5e4e
@ -2640,6 +2640,8 @@ export class ForceSwitchOutAttr extends MoveEffectAttr {
|
|||||||
// Switch out logic for the battle type
|
// Switch out logic for the battle type
|
||||||
switchOutTarget.resetTurnData();
|
switchOutTarget.resetTurnData();
|
||||||
switchOutTarget.resetSummonData();
|
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.hideInfo();
|
||||||
switchOutTarget.setVisible(false);
|
switchOutTarget.setVisible(false);
|
||||||
switchOutTarget.scene.field.remove(switchOutTarget);
|
switchOutTarget.scene.field.remove(switchOutTarget);
|
||||||
|
Loading…
Reference in New Issue
Block a user