mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-26 02:14:22 -05:00
moveend: Handle MOVE_UNAVAILABLE in MOVEEND_THIRD_MOVE_BLOCK (#8215)
This commit is contained in:
parent
44453888df
commit
2373f0283b
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user