Remove one redundant call of SetAiLogicDataForTurn in DoBattleIntro (#5491)

This is already run at the end of `TryDoEventsBeforeFirstTurn` which makes the first calc redundant.

I've had this removed in my project for a while and didn't notice any problems
This commit is contained in:
Alex 2024-10-09 17:18:08 +02:00 committed by GitHub
parent 7fc5502afd
commit 3c3ce38378
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3750,7 +3750,6 @@ static void DoBattleIntro(void)
gBattleStruct->eventsBeforeFirstTurnState = 0;
gBattleStruct->switchInBattlerCounter = 0;
gBattleStruct->overworldWeatherDone = FALSE;
SetAiLogicDataForTurn(AI_DATA); // get assumed abilities, hold effects, etc of all battlers
Ai_InitPartyStruct(); // Save mons party counts, and first 2/4 mons on the battlefield.
// Try to set a status to start the battle with