From c77bed7bfbb2b4067a57819afee1b974d273d6cc Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Sat, 30 May 2020 05:04:23 -0300 Subject: [PATCH] =?UTF-8?q?Fixed=20Regenerator=20overhealing=20a=20Pok?= =?UTF-8?q?=C3=A9mon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/battle_script_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 3f457b7e5..06fcbd429 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -11182,7 +11182,7 @@ static void Cmd_switchoutabilities(void) gBattleMoveDamage = gBattleMons[gActiveBattler].maxHP / 3; gBattleMoveDamage += gBattleMons[gActiveBattler].hp; if (gBattleMoveDamage > gBattleMons[gActiveBattler].maxHP) - gBattleMons[gActiveBattler].maxHP = gBattleMons[gActiveBattler].maxHP; + gBattleMoveDamage = gBattleMons[gActiveBattler].maxHP; BtlController_EmitSetMonData(0, REQUEST_HP_BATTLE, gBitTable[*(gBattleStruct->field_58 + gActiveBattler)], 2, &gBattleMoveDamage); MarkBattlerForControllerExec(gActiveBattler); break;