IS_BATTLER_OF_TYPE
This commit is contained in:
parent
866d916f2f
commit
99fbad92e2
1 changed files with 1 additions and 3 deletions
|
@ -446,9 +446,7 @@ static bool8 ShouldSwitch(void)
|
|||
return FALSE;
|
||||
if (ABILITY_ON_FIELD2(ABILITY_MAGNET_PULL))
|
||||
{
|
||||
if (gBattleMons[gActiveBattler].type1 == TYPE_STEEL)
|
||||
return FALSE;
|
||||
if (gBattleMons[gActiveBattler].type2 == TYPE_STEEL)
|
||||
if (IS_BATTLER_OF_TYPE(gActiveBattler, TYPE_STEEL))
|
||||
return FALSE;
|
||||
}
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_ARENA)
|
||||
|
|
Loading…
Reference in a new issue