mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-28 22:33:53 +01:00
Add constants when using GetMonsStateToDoubles_2
This commit is contained in:
parent
c663154760
commit
a3ae182fc2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user