minor change

This commit is contained in:
sneed 2022-05-03 15:06:56 +03:00
parent f96fc60ac4
commit 00e9d02889

View File

@ -2450,10 +2450,10 @@ static bool32 PartyBattlerShouldAvoidHazards(u8 currBattler, u8 switchBattler)
if (ability == ABILITY_MAGIC_GUARD)
return FALSE;
if (!(gFieldStatuses & STATUS_FIELD_MAGIC_ROOM || ability == ABILITY_KLUTZ))
holdEffect = gItems[GetMonData(mon, MON_DATA_HELD_ITEM)].holdEffect;
else
if (gFieldStatuses & STATUS_FIELD_MAGIC_ROOM || ability == ABILITY_KLUTZ)
holdEffect = HOLD_EFFECT_NONE;
else
holdEffect = gItems[GetMonData(mon, MON_DATA_HELD_ITEM)].holdEffect;
if (holdEffect == HOLD_EFFECT_HEAVY_DUTY_BOOTS)
return FALSE;