Merge pull request #1846 from Jaizu/patch-31

Add constants when using GetMonsStateToDoubles_2
This commit is contained in:
GriffinR 2023-01-15 08:46:11 -05:00 committed by GitHub
commit ba8bed4da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ bool8 CheckForTrainersWantingBattle(void)
if (gNoOfApproachingTrainers > 1)
break;
if (GetMonsStateToDoubles_2() != 0) // one trainer found and cant have a double battle
if (GetMonsStateToDoubles_2() != PLAYER_HAS_TWO_USABLE_MONS) // one trainer found and cant have a double battle
break;
}
@ -280,7 +280,7 @@ static u8 CheckTrainer(u8 objectEventId)
|| scriptPtr[1] == TRAINER_BATTLE_REMATCH_DOUBLE
|| scriptPtr[1] == TRAINER_BATTLE_CONTINUE_SCRIPT_DOUBLE)
{
if (GetMonsStateToDoubles_2() != 0)
if (GetMonsStateToDoubles_2() != PLAYER_HAS_TWO_USABLE_MONS)
return 0;
numTrainers = 2;