Fixed switch out abilities switch in gcc 11
This commit is contained in:
parent
c0f5285f21
commit
3b9ea629a7
@ -15067,6 +15067,7 @@ static void Cmd_switchoutabilities(void)
|
||||
MarkBattlerForControllerExec(battler);
|
||||
break;
|
||||
case ABILITY_REGENERATOR:
|
||||
{
|
||||
u32 regenerate = GetNonDynamaxMaxHP(gBattlerAttacker) / 3;
|
||||
regenerate += gBattleMons[battler].hp;
|
||||
if (gBattleStruct->moveDamage[gBattlerAttacker] > gBattleMons[battler].maxHP)
|
||||
@ -15078,6 +15079,7 @@ static void Cmd_switchoutabilities(void)
|
||||
MarkBattlerForControllerExec(battler);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
gBattlescriptCurrInstr = cmd->nextInstr;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user