mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
exclude wild battles from ai lag meter
This commit is contained in:
parent
bd48cca8a2
commit
2d9cbef684
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user