From 78a1f351d9f847290d9fd62ec9c584eb3ec4d89a Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Sun, 12 Jul 2020 22:54:47 +0200 Subject: [PATCH] Fix stat stage bug --- src/battle_script_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 82896bf98..296fde372 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -8674,7 +8674,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr statValue = -GET_STAT_BUFF_VALUE(statValue); if (gBattleMons[gActiveBattler].statStages[statId] == 1) statValue = -1; - else if (gBattleMons[gActiveBattler].statStages[statId] == 2) + else if (gBattleMons[gActiveBattler].statStages[statId] == 2 && statValue < -2) statValue = -2; gBattleTextBuff2[0] = B_BUFF_PLACEHOLDER_BEGIN; index = 1; @@ -8711,7 +8711,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr statValue = GET_STAT_BUFF_VALUE(statValue); if (gBattleMons[gActiveBattler].statStages[statId] == 11) statValue = 1; - else if (gBattleMons[gActiveBattler].statStages[statId] == 10) + else if (gBattleMons[gActiveBattler].statStages[statId] == 10 && statValue > 2) statValue = 2; gBattleTextBuff2[0] = B_BUFF_PLACEHOLDER_BEGIN; index = 1;