misty terrain blocks toxic spikes

This commit is contained in:
ghoulslash 2021-08-12 13:41:18 -06:00
parent c7c0fbc296
commit f050168c55

View File

@ -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.