Fixing Healing Charm hp rounding error

This commit is contained in:
Flashfyre 2024-02-20 11:42:05 -05:00
parent fe38e00e59
commit 0fa5d84af6
1 changed files with 1 additions and 1 deletions

View File

@ -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);