mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-27 21:20:50 -05:00
fix AI_ShouldHeal speed check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user