Fix form ID check
The six here should be a seven, and replacing it with this function call is better than hard-coding it.
This commit is contained in:
parent
cdb28f038f
commit
611da31ae3
1 changed files with 1 additions and 1 deletions
|
@ -7137,7 +7137,7 @@ u32 IsLeafGuardProtected(u32 battler)
|
|||
bool32 IsShieldsDownProtected(u32 battler)
|
||||
{
|
||||
return (gBattleMons[battler].ability == ABILITY_SHIELDS_DOWN
|
||||
&& GetFormIdFromFormSpeciesId(gBattleMons[battler].species) < 6); // Minior is not in core form
|
||||
&& GetFormIdFromFormSpeciesId(gBattleMons[battler].species) < GetFormIdFromFormSpeciesId(SPECIES_MINIOR_CORE_RED)); // Minior is not in core form
|
||||
}
|
||||
|
||||
u32 IsAbilityStatusProtected(u32 battler)
|
||||
|
|
Loading…
Reference in a new issue