mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Merge pull request #2343 from StubbornOne/GetAiLogicData
Replace battle-type flags in GetAiLogicData with BATTLE_TYPE_HAS_AI
This commit is contained in:
commit
29c3f57772
@ -258,7 +258,7 @@ void GetAiLogicData(void)
|
||||
|
||||
memset(AI_DATA, 0, sizeof(struct AiLogicData));
|
||||
|
||||
if (!(gBattleTypeFlags & (BATTLE_TYPE_TRAINER | BATTLE_TYPE_FIRST_BATTLE | BATTLE_TYPE_SAFARI | BATTLE_TYPE_ROAMER))
|
||||
if (!(gBattleTypeFlags & BATTLE_TYPE_HAS_AI)
|
||||
&& !IsWildMonSmart())
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user