Fixes AI scoring when Priority moves are blocked (#7745)
This commit is contained in:
parent
32f8464fec
commit
6096f97f3f
@ -1142,7 +1142,7 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score)
|
||||
if (!(moveTarget & MOVE_TARGET_USER))
|
||||
{
|
||||
if (Ai_IsPriorityBlocked(battlerAtk, battlerDef, move, aiData))
|
||||
return TRUE;
|
||||
RETURN_SCORE_MINUS(20);
|
||||
|
||||
if (CanAbilityBlockMove(battlerAtk, battlerDef, abilityAtk, abilityDef, move, AI_CHECK))
|
||||
RETURN_SCORE_MINUS(20);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user