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);
|
const hpRestoreMultiplier = new Utils.IntegerHolder(1);
|
||||||
if (!this.revive)
|
if (!this.revive)
|
||||||
this.scene.applyModifiers(HealingBoosterModifier, this.player, hpRestoreMultiplier);
|
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);
|
healAmount.value = pokemon.heal(healAmount.value);
|
||||||
if (pokemon.isPlayer()) {
|
if (pokemon.isPlayer()) {
|
||||||
this.scene.validateAchvs(HealAchv, healAmount);
|
this.scene.validateAchvs(HealAchv, healAmount);
|
||||||
|
|
Loading…
Reference in New Issue