Merge pull request #1846 from Jaizu/patch-31
Add constants when using GetMonsStateToDoubles_2
This commit is contained in:
commit
ba8bed4da3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue