From 0fa5d84af67a3ca24b7d559a7b9603445670a07b Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 20 Feb 2024 11:42:05 -0500 Subject: [PATCH] Fixing Healing Charm hp rounding error --- src/battle-phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index a878b8db18b..5b7a8ac541c 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -3202,7 +3202,7 @@ export class PokemonHealPhase extends CommonAnimPhase { const hpRestoreMultiplier = new Utils.IntegerHolder(1); if (!this.revive) this.scene.applyModifiers(HealingBoosterModifier, this.player, hpRestoreMultiplier); - const healAmount = new Utils.NumberHolder(this.hpHealed * hpRestoreMultiplier.value); + const healAmount = new Utils.NumberHolder(Math.floor(this.hpHealed * hpRestoreMultiplier.value)); healAmount.value = pokemon.heal(healAmount.value); if (pokemon.isPlayer()) { this.scene.validateAchvs(HealAchv, healAmount);