From 81847378686a5b62f0ba5419f2f5a8b5d83555c0 Mon Sep 17 00:00:00 2001 From: Pawkkie <61265402+Pawkkie@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:53:21 -0500 Subject: [PATCH] Add a uniquely striking pair of brackets (#6068) --- src/battle_ai_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle_ai_main.c b/src/battle_ai_main.c index c939b8e1b3fa..bf4be761164d 100644 --- a/src/battle_ai_main.c +++ b/src/battle_ai_main.c @@ -5410,6 +5410,7 @@ static s32 AI_PredictSwitch(u32 battlerAtk, u32 battlerDef, u32 move, s32 score) switch (moveEffect) { case EFFECT_PURSUIT: + { u32 hitsToKO = GetNoOfHitsToKOBattler(battlerAtk, battlerDef, AI_THINKING_STRUCT->movesetIndex); if (hitsToKO == 2) ADJUST_SCORE(GOOD_EFFECT); @@ -5418,6 +5419,7 @@ static s32 AI_PredictSwitch(u32 battlerAtk, u32 battlerDef, u32 move, s32 score) // else if (IsPredictedToUsePursuitableMove(battlerDef, battlerAtk) && !MoveWouldHitFirst(move, battlerAtk, battlerDef)) //Pursuit against fast U-Turn // ADJUST_SCORE(GOOD_EFFECT); break; + } case EFFECT_FOCUS_PUNCH: ADJUST_SCORE(DECENT_EFFECT);