Skip to content

Commit

Permalink
IsValidForBattle function formatting (#5085)
Browse files Browse the repository at this point in the history
ocd
  • Loading branch information
AlexOn1ine authored Aug 3, 2024
1 parent 9d97537 commit 41a79e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/battle_controllers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41a79e3

Please sign in to comment.