pokerogue
pokerogue copied to clipboard
corrected u turn and flip turn crash
Fixes #273 Fixes #584
Not sure if it's the entended behavior but Flip Turn / U-turn makes the wild pokemon using it flee the fight. If it's not the entended behavior there are some more changes that need to be added to these two move. Nonetheless, this should fix the crashes at least
Testing Done: -Tested Ferrothorn with Iron Barbs being hit with both U-Turn and Flip Turn (issue #584) -Tested pokemon with U-Turn swapping when being targeted with a suicide move (issue #273)
No error logs or crashes present.