Merge pull request #1615 from LOuroboros/choiceUTurn

Fixed U-turn and Choice Items interaction
This commit is contained in:
ghoulslash 2021-09-01 06:00:02 -06:00 committed by GitHub
commit dd83e37261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4872,8 +4872,7 @@ static void Cmd_moveend(void)
&& (*choicedMoveAtk == 0 || *choicedMoveAtk == 0xFFFF))
{
if ((gBattleMoves[gChosenMove].effect == EFFECT_BATON_PASS
|| gBattleMoves[gChosenMove].effect == EFFECT_HEALING_WISH
|| gBattleMoves[gChosenMove].effect == EFFECT_HIT_ESCAPE)
|| gBattleMoves[gChosenMove].effect == EFFECT_HEALING_WISH)
&& !(gMoveResultFlags & MOVE_RESULT_FAILED))
{
++gBattleScripting.moveendState;