mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
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
@ -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…
x
Reference in New Issue
Block a user