Fixed AI_FLAG_RISKY score increase making tests with AI_LOG fail (#4790)
This commit is contained in:
parent
353727a805
commit
3747668bf3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue