mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +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;
|
u8 effectiveness;
|
||||||
s32 dmg;
|
s32 dmg;
|
||||||
|
|
||||||
gBattleStruct->aiDelayTimer = gMain.vblankCounter1;
|
|
||||||
memset(AI_DATA, 0, sizeof(struct AiLogicData));
|
memset(AI_DATA, 0, sizeof(struct AiLogicData));
|
||||||
|
|
||||||
if (!(gBattleTypeFlags & BATTLE_TYPE_HAS_AI) && !IsWildMonSmart())
|
if (!(gBattleTypeFlags & BATTLE_TYPE_HAS_AI) && !IsWildMonSmart())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
gBattleStruct->aiDelayTimer = gMain.vblankCounter1;
|
||||||
|
|
||||||
// get/assume all battler data
|
// get/assume all battler data
|
||||||
for (i = 0; i < gBattlersCount; i++)
|
for (i = 0; i < gBattlersCount; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user