Skip to content

Commit

Permalink
Add a uniquely striking pair of brackets (#6068)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawkkie authored Jan 20, 2025
1 parent 27c8ec0 commit 8184737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/battle_ai_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 8184737

Please sign in to comment.