Fix Starting Status being passed on to future wild battles (#5248)

This commit is contained in:
PhallenTree 2024-08-24 13:28:24 +01:00 committed by GitHub
parent 4208da1e22
commit 85fe398b50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3755,7 +3755,7 @@ static void DoBattleIntro(void)
gBattleStruct->startingStatus = GetTrainerStartingStatusFromId(gTrainerBattleOpponent_B);
gBattleStruct->startingStatusTimer = 0; // infinite
}
else if (GetTrainerStartingStatusFromId(gTrainerBattleOpponent_A))
else if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && GetTrainerStartingStatusFromId(gTrainerBattleOpponent_A))
{
gBattleStruct->startingStatus = GetTrainerStartingStatusFromId(gTrainerBattleOpponent_A);
gBattleStruct->startingStatusTimer = 0; // infinite