IsValidForBattle function formatting (#5085)

ocd
This commit is contained in:
Alex 2024-08-03 23:23:34 +02:00 committed by GitHub
parent 9d97537ee2
commit 41a79e3833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -610,9 +610,10 @@ static void InitLinkBtlControllers(void)
bool32 IsValidForBattle(struct Pokemon *mon)
{
u32 species = GetMonData(mon, MON_DATA_SPECIES_OR_EGG);
return (species != SPECIES_NONE && species != SPECIES_EGG
&& GetMonData(mon, MON_DATA_HP) != 0
&& GetMonData(mon, MON_DATA_IS_EGG) == FALSE);
return (species != SPECIES_NONE
&& species != SPECIES_EGG
&& GetMonData(mon, MON_DATA_HP) != 0
&& GetMonData(mon, MON_DATA_IS_EGG) == FALSE);
}
static void SetBattlePartyIds(void)