mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-22 04:04:15 +01:00
poison type still absorbs toxic spikes with heavy duty boots
This commit is contained in:
parent
c7a587913b
commit
4e2948012f
@ -5991,7 +5991,6 @@ static void Cmd_switchineffects(void)
|
|||||||
}
|
}
|
||||||
else if (!(gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES_DAMAGED)
|
else if (!(gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES_DAMAGED)
|
||||||
&& (gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES)
|
&& (gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES)
|
||||||
&& IsBattlerAffectedByHazards(gActiveBattler, TRUE)
|
|
||||||
&& IsBattlerGrounded(gActiveBattler))
|
&& IsBattlerGrounded(gActiveBattler))
|
||||||
{
|
{
|
||||||
gSideStatuses[GetBattlerSide(gActiveBattler)] |= SIDE_STATUS_TOXIC_SPIKES_DAMAGED;
|
gSideStatuses[GetBattlerSide(gActiveBattler)] |= SIDE_STATUS_TOXIC_SPIKES_DAMAGED;
|
||||||
@ -6003,7 +6002,7 @@ static void Cmd_switchineffects(void)
|
|||||||
BattleScriptPushCursor();
|
BattleScriptPushCursor();
|
||||||
gBattlescriptCurrInstr = BattleScript_ToxicSpikesAbsorbed;
|
gBattlescriptCurrInstr = BattleScript_ToxicSpikesAbsorbed;
|
||||||
}
|
}
|
||||||
else
|
else if (IsBattlerAffectedByHazards(gActiveBattler, TRUE))
|
||||||
{
|
{
|
||||||
if (!(gBattleMons[gActiveBattler].status1 & STATUS1_ANY)
|
if (!(gBattleMons[gActiveBattler].status1 & STATUS1_ANY)
|
||||||
&& !IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_STEEL)
|
&& !IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_STEEL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user