Skip to content

Commit

Permalink
fix score
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine committed Oct 31, 2023
1 parent ac22507 commit b902830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_ai_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3298,7 +3298,7 @@ static s32 AI_CheckViability(u32 battlerAtk, u32 battlerDef, u32 move, s32 score
{
if ((gBattleMons[battlerAtk].status1 & STATUS1_BURN && HasOnlyMovesWithSplit(battlerAtk, SPLIT_PHYSICAL, TRUE))
|| (gBattleMons[battlerAtk].status1 & STATUS1_FROSTBITE && HasOnlyMovesWithSplit(battlerAtk, SPLIT_SPECIAL, TRUE)))
SET_SCORE(90); // Force switch if all your attacking moves are physical and you have Natural Cure.
ADJUST_SCORE(-20); // Force switch if all your attacking moves are physical and you have Natural Cure.
}

// move effect checks
Expand Down

0 comments on commit b902830

Please sign in to comment.