Extra parentheses oops

This commit is contained in:
WillKolada 2024-05-07 16:17:24 -05:00 committed by GitHub
parent f828d35edf
commit 08f3bca1f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1401,7 +1401,7 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score)
case EFFECT_ROAR:
if (CountUsablePartyMons(battlerDef) == 0)
ADJUST_SCORE(-10);
else if (aiData->abilities[battlerDef] == ABILITY_SUCTION_CUPS || IsDynamaxed(battlerDef)))
else if (aiData->abilities[battlerDef] == ABILITY_SUCTION_CUPS || IsDynamaxed(battlerDef))
ADJUST_SCORE(-10);
break;
case EFFECT_TOXIC_THREAD:
@ -2461,7 +2461,9 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score)
ADJUST_SCORE(-10);
}
else if (IsDynamaxed(battlerDef))
{
ADJUST_SCORE(-10);
}
else if (isDoubleBattle)
{
if (!IS_TARGETING_PARTNER(battlerAtk, battlerDef))