Fix AI unusable move scoring freeze (#7369)

This commit is contained in:
Pawkkie
2025-07-19 03:56:56 -04:00
committed by GitHub
parent ac69a61cb4
commit c61c2bbbc1

View File

@@ -290,7 +290,7 @@ void BattleAI_SetupAIData(u8 defaultScoreMoves, u32 battler)
{
if (moveLimitations & (1u << moveIndex))
SET_SCORE(battler, moveIndex, 0);
if (defaultScoreMoves & 1)
else if (defaultScoreMoves & 1)
SET_SCORE(battler, moveIndex, AI_SCORE_DEFAULT);
else
SET_SCORE(battler, moveIndex, 0);