misty terrain blocks toxic spikes
This commit is contained in:
parent
c7c0fbc296
commit
f050168c55
1 changed files with 2 additions and 1 deletions
|
@ -5867,7 +5867,8 @@ static void Cmd_switchineffects(void)
|
|||
}
|
||||
else if (!(gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES_DAMAGED)
|
||||
&& (gSideStatuses[GetBattlerSide(gActiveBattler)] & SIDE_STATUS_TOXIC_SPIKES)
|
||||
&& IsBattlerGrounded(gActiveBattler))
|
||||
&& IsBattlerGrounded(gActiveBattler)
|
||||
&& !(gFieldStatuses & STATUS_FIELD_MISTY_TERRAIN))
|
||||
{
|
||||
gSideStatuses[GetBattlerSide(gActiveBattler)] |= SIDE_STATUS_TOXIC_SPIKES_DAMAGED;
|
||||
if (IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_POISON)) // Absorb the toxic spikes.
|
||||
|
|
Loading…
Reference in a new issue