Skip to content

Commit

Permalink
Adds GetMovesArray in CanTargetFaintAi (#2936)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoulslash authored Apr 23, 2023
2 parents 909a20c + 4a08ede commit 25327b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/battle_ai_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ bool32 IsAiBattlerAware(u32 battlerId)
{
if (AI_THINKING_STRUCT->aiFlags & AI_FLAG_OMNISCIENT)
return TRUE;

return BattlerHasAi(battlerId);
}

Expand Down Expand Up @@ -1129,7 +1129,7 @@ bool32 CanTargetFaintAi(u8 battlerDef, u8 battlerAtk)
{
s32 i, dmg;
u32 unusable = AI_DATA->moveLimitations[battlerDef];
u16 *moves = gBattleResources->battleHistory->usedMoves[battlerDef];
u16 *moves = GetMovesArray(battlerDef);

for (i = 0; i < MAX_MON_MOVES; i++)
{
Expand Down

0 comments on commit 25327b9

Please sign in to comment.