Replace battle-type flags in GetAiLogicData with BATTLE_TYPE_HAS_AI
This commit is contained in:
parent
5261645c7e
commit
cad8922d7b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue