mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-29 20:27:18 +00:00
Fixing Healing Charm hp rounding error
This commit is contained in:
parent
fe38e00e59
commit
0fa5d84af6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user