Renamed MON_DATA_SPECIES2 to MON_DATA_SPECIES_OR_EGG for clarification
This commit is contained in:
@@ -118,7 +118,7 @@ static bool8 CheckPartyMonHasHeldItem(u16 item)
|
||||
|
||||
for(i = 0; i < PARTY_SIZE; i++)
|
||||
{
|
||||
u16 species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
|
||||
u16 species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES_OR_EGG);
|
||||
if (species != SPECIES_NONE && species != SPECIES_EGG && GetMonData(&gPlayerParty[i], MON_DATA_HELD_ITEM) == item)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user