Fixed AI_FLAG_RISKY score increase making tests with AI_LOG fail (#4790)

This commit is contained in:
Eduardo Quezada 2024-06-13 13:13:10 -04:00 committed by GitHub
parent 353727a805
commit 3747668bf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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