mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-16 12:29:26 +02:00
fixd heal block bug
This commit is contained in:
parent
2a611da07a
commit
6fd3c356c4
@ -197,6 +197,6 @@ export class PokemonHealPhase extends CommonAnimPhase {
|
|||||||
// Liquid Ooze damage (being negative) remains uncapped as normal.
|
// Liquid Ooze damage (being negative) remains uncapped as normal.
|
||||||
const healMulti = new NumberHolder(1);
|
const healMulti = new NumberHolder(1);
|
||||||
globalScene.applyModifiers(HealingBoosterModifier, this.player, healMulti);
|
globalScene.applyModifiers(HealingBoosterModifier, this.player, healMulti);
|
||||||
return toDmgValue(Math.min(this.hpHealed * healMulti.value, this.getPokemon().getMaxHp() - +this.preventFullHeal));
|
return Math.min(Math.floor(this.hpHealed * healMulti.value), this.getPokemon().getMaxHp() - +this.preventFullHeal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user