pokerogue icon indicating copy to clipboard operation
pokerogue copied to clipboard

Fix Run Away to bypass trapping

Open c4vv opened this issue 1 year ago • 2 comments

Currently the logic for checking trapping does not account for the ability Run Away. Run Away is supposed to bypass trapping for running specifically, but not allow switching. In order to accomplish this, we need to add the specific case that ignores trapping if the run command is used and the player Pokemon has the ability run away.

Test for Run Away facing Arena Trap: https://github.com/pagefaultgames/pokerogue/assets/132619649/1d404c3c-3f7a-4782-99c8-4c521bbf4662

Test for Flash Fire facing Arena Trap: https://github.com/pagefaultgames/pokerogue/assets/132619649/dd57338f-9645-4eb6-814b-bc4cb5839b9f

Test for Flash Fire facing Sand Veil: https://github.com/pagefaultgames/pokerogue/assets/132619649/5bab8350-2d26-4cd0-902a-9d8b76ba3aa7

c4vv avatar May 22 '24 21:05 c4vv

This would be a useful bug to fix!

Reibd avatar May 22 '24 21:05 Reibd

Looks good to me but can you pull the most recent changes to make sure this passes the linter check and fix any merge conflicts?

Tempo-anon avatar May 24 '24 23:05 Tempo-anon

Can't merge properly, just opening a new PR

c4vv avatar May 29 '24 04:05 c4vv