pokerogue icon indicating copy to clipboard operation
pokerogue copied to clipboard

Fix Enemy Fake Out and Force Switch Interaction

Open torranx opened this issue 9 months ago • 0 comments

#347 fixes #368 BUT the game right now only checks the last used move of the PLAYER'S pokemon.

This would mean if player used a non-force switch move before a pokemon is forced switched out, the pokemon switched in cannot use fake out since the last move getting evaluated is the player's move.

Scenario 1. Player used Focus Energy then Enemy Used Dragon Tail - Expectation: next player pokemon should be able to use Fake Out - Current behavior: Focus Energy is evaluated which does not have ForceSwitchAttr, so the move fails

Please see logs for move used each turn

https://github.com/pagefaultgames/pokerogue/assets/68144167/b7acd604-d66e-402e-a1ff-5ab07152e022

Scenario 2. Player used Drain Punch then Enemy used U Turn - Expectation: next enemy pokemon should be able to use Fake Out - Current behavior: Drain Punch is evaluated which does not have ForceSwitchAttr, so the move fails - I cant get a proper video here because the enemy keeps spamming U Turn x_x

Fix introduced: When SwitchSummonPhase is unshifted, we get instead the last move used by the switched out pokemon.

torranx avatar May 22 '24 19:05 torranx