mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-09-29 01:04:28 +02:00
fix AI_ShouldHeal speed check
This commit is contained in:
parent
65cb371104
commit
3976d982ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user