Moves that deal a Fixed amount don't need AI handling (#5614)

This commit is contained in:
Alex 2024-10-29 21:49:56 +01:00 committed by GitHub
parent 5df6f0b753
commit 8e0443f727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2509,12 +2509,6 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score)
else else
ADJUST_SCORE(-10); ADJUST_SCORE(-10);
break; break;
case EFFECT_POWER_BASED_ON_USER_HP:
if (effectiveness <= AI_EFFECTIVENESS_x0_5)
ADJUST_SCORE(-1);
if (aiData->hpPercents[battlerDef] < 50)
ADJUST_SCORE(-1);
break;
case EFFECT_FLAIL: case EFFECT_FLAIL:
if (AI_IsSlower(battlerAtk, battlerDef, move) // Opponent should go first if (AI_IsSlower(battlerAtk, battlerDef, move) // Opponent should go first
|| aiData->hpPercents[battlerAtk] > 50) || aiData->hpPercents[battlerAtk] > 50)