fix AI_ShouldHeal speed check

This commit is contained in:
ghoulslash 2021-11-11 16:35:10 -05:00
parent 65cb371104
commit 3976d982ff

View File

@ -1001,7 +1001,7 @@ static bool32 AI_ShouldHeal(u8 healAmount)
}
// AI_THINKING_STRUCT->movesetIndex is the array index of the AI's chosen move
if (CanIndexMoveFaintTarget(gActiveBattler, i, AI_THINKING_STRUCT->movesetIndex, 0) && WillAIStrikeFirst())
if (CanIndexMoveFaintTarget(gActiveBattler, i, AI_THINKING_STRUCT->movesetIndex, 0) && AI_WhoStrikesFirst(gActiveBattler, i) == AI_IS_FASTER)
{
// We can faint the target and move first -> don't heal
shouldHeal = FALSE;