mirror of https://github.com/pret/pokeemerald.git
port GetFrontierOpponentClass fakematch fix
This commit is contained in:
parent
c7d624edeb
commit
4c10f3f465
|
@ -1447,7 +1447,7 @@ u8 GetFrontierOpponentClass(u16 trainerId)
|
|||
}
|
||||
else if (trainerId == TRAINER_FRONTIER_BRAIN)
|
||||
{
|
||||
trainerClass = GetFrontierBrainTrainerClass();
|
||||
return GetFrontierBrainTrainerClass();
|
||||
}
|
||||
else if (trainerId == TRAINER_STEVEN_PARTNER)
|
||||
{
|
||||
|
@ -1466,9 +1466,6 @@ u8 GetFrontierOpponentClass(u16 trainerId)
|
|||
else
|
||||
{
|
||||
trainerClass = gFacilityClassToTrainerClass[gSaveBlock2Ptr->frontier.towerRecords[trainerId - TRAINER_RECORD_MIXING_FRIEND].facilityClass];
|
||||
#ifndef NONMATCHING
|
||||
asm("");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1480,9 +1477,6 @@ u8 GetFrontierOpponentClass(u16 trainerId)
|
|||
else
|
||||
{
|
||||
trainerClass = gFacilityClassToTrainerClass[gApprentices[gSaveBlock2Ptr->apprentices[trainerId - TRAINER_RECORD_MIXING_APPRENTICE].id].facilityClass];
|
||||
#ifndef NONMATCHING
|
||||
asm("");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue