mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-23 06:16:31 -05:00
Fixes 2 instances of global usage in the Cmd_adjustdamage loop (#7918)
This commit is contained in:
parent
c030a14063
commit
0bc3c348b4
|
|
@ -1901,13 +1901,13 @@ static void Cmd_adjustdamage(void)
|
|||
gBattleStruct->moveResultFlags[battlerDef] &= ~(MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE);
|
||||
gBattleStruct->moveDamage[battlerDef] = 0;
|
||||
gSpecialStatuses[battlerDef].enduredDamage = TRUE;
|
||||
RecordAbilityBattle(gBattlerTarget, ABILITY_ICE_FACE);
|
||||
RecordAbilityBattle(battlerDef, ABILITY_ICE_FACE);
|
||||
gDisableStructs[battlerDef].iceFaceActivationPrevention = TRUE;
|
||||
// Form change will be done after attack animation in Cmd_resultmessage.
|
||||
continue;
|
||||
}
|
||||
|
||||
if (gBattleMons[gBattlerTarget].hp > gBattleStruct->moveDamage[battlerDef])
|
||||
if (gBattleMons[battlerDef].hp > gBattleStruct->moveDamage[battlerDef])
|
||||
continue;
|
||||
|
||||
holdEffect = GetBattlerHoldEffect(battlerDef, TRUE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user