Fixes AI scoring when Priority moves are blocked (#7745)

This commit is contained in:
PhallenTree 2025-09-16 18:40:25 +01:00 committed by GitHub
parent 32f8464fec
commit 6096f97f3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);