This commit is contained in:
Alex 2023-02-24 23:38:23 +01:00
parent 0669ac851f
commit 1e1686b69a

View file

@ -2632,7 +2632,7 @@ static s16 AI_TryToFaint(u8 battlerAtk, u8 battlerDef, u16 move, s16 score)
if (CanIndexMoveFaintTarget(battlerAtk, battlerDef, AI_THINKING_STRUCT->movesetIndex, 0) && gBattleMoves[move].effect != EFFECT_EXPLOSION)
{
// this move can faint the target
if (!WillAIStrikeFirst() || GetMovePriority(battlerAtk, move) > 0)
if (WillAIStrikeFirst() || GetMovePriority(battlerAtk, move) > 0)
score += 4; // we go first or we're using priority move
else
score += 2;