Replace battle-type flags in GetAiLogicData with BATTLE_TYPE_HAS_AI

This commit is contained in:
StubbornOne 2022-09-21 23:42:40 +08:00
parent 5261645c7e
commit cad8922d7b

View file

@ -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;