From 8e0443f727235605f4f8971274f8fee83578c5ef Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:49:56 +0100 Subject: [PATCH] Moves that deal a Fixed amount don't need AI handling (#5614) --- src/battle_ai_main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/battle_ai_main.c b/src/battle_ai_main.c index 3ffcecd996..a1cf751034 100644 --- a/src/battle_ai_main.c +++ b/src/battle_ai_main.c @@ -2509,12 +2509,6 @@ static s32 AI_CheckBadMove(u32 battlerAtk, u32 battlerDef, u32 move, s32 score) else ADJUST_SCORE(-10); 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: if (AI_IsSlower(battlerAtk, battlerDef, move) // Opponent should go first || aiData->hpPercents[battlerAtk] > 50)