Merge pull request #2343 from StubbornOne/GetAiLogicData

Replace battle-type flags in GetAiLogicData with BATTLE_TYPE_HAS_AI
This commit is contained in:
Eduardo Quezada D'Ottone 2022-09-21 12:54:13 -03:00 committed by GitHub
commit 29c3f57772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;