moveend: Handle MOVE_UNAVAILABLE in MOVEEND_THIRD_MOVE_BLOCK (#8215)
Some checks are pending
CI / build (push) Waiting to run
CI / allcontributors (push) Waiting to run

This commit is contained in:
Martin Griffin 2025-11-11 21:01:16 +00:00 committed by GitHub
parent 44453888df
commit 2373f0283b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6910,6 +6910,12 @@ static void Cmd_moveend(void)
gBattleScripting.moveendState++;
break;
case MOVEEND_THIRD_MOVE_BLOCK:
if (gChosenMove == MOVE_UNAVAILABLE)
{
gBattleScripting.moveendState++;
break;
}
// Special case for Steel Roller since it has to check the chosen move
if (GetMoveEffect(gChosenMove) == EFFECT_STEEL_ROLLER && IsBattlerTurnDamaged(gBattlerTarget))
{