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:
BuffelSaft 2021-10-02 15:51:16 +13:00
parent cdb28f038f
commit 611da31ae3

View File

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