From 3747668bf3ed37c7c863c16ad97f49ee0366fc74 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Thu, 13 Jun 2024 13:13:10 -0400 Subject: [PATCH] Fixed AI_FLAG_RISKY score increase making tests with AI_LOG fail (#4790) --- src/battle_ai_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_ai_main.c b/src/battle_ai_main.c index c88825211d..b6df2c627b 100644 --- a/src/battle_ai_main.c +++ b/src/battle_ai_main.c @@ -4739,7 +4739,7 @@ static s32 AI_CheckViability(u32 battlerAtk, u32 battlerDef, u32 move, s32 score else { if ((AI_THINKING_STRUCT->aiFlags[battlerAtk] & AI_FLAG_RISKY) && GetBestDmgMoveFromBattler(battlerAtk, battlerDef) == move) - score += 1; + ADJUST_SCORE(1); else score += AI_CompareDamagingMoves(battlerAtk, battlerDef, AI_THINKING_STRUCT->movesetIndex); }