exclude wild battles from ai lag meter

This commit is contained in:
DizzyEggg 2023-09-12 20:19:14 +02:00
parent bd48cca8a2
commit 2d9cbef684

View File

@ -353,12 +353,13 @@ void SetAiLogicDataForTurn(void)
u8 effectiveness;
s32 dmg;
gBattleStruct->aiDelayTimer = gMain.vblankCounter1;
memset(AI_DATA, 0, sizeof(struct AiLogicData));
if (!(gBattleTypeFlags & BATTLE_TYPE_HAS_AI) && !IsWildMonSmart())
return;
gBattleStruct->aiDelayTimer = gMain.vblankCounter1;
// get/assume all battler data
for (i = 0; i < gBattlersCount; i++)
{