Fixed liquid ooze not working

This commit is contained in:
Bertie690 2025-08-08 14:22:37 -04:00
parent 6fd3c356c4
commit e61a0d4326

View File

@ -197,6 +197,7 @@ export class PokemonHealPhase extends CommonAnimPhase {
// Liquid Ooze damage (being negative) remains uncapped as normal.
const healMulti = new NumberHolder(1);
globalScene.applyModifiers(HealingBoosterModifier, this.player, healMulti);
// TODO: we need to round liquid ooze dmg towards 0, not down
return Math.min(Math.floor(this.hpHealed * healMulti.value), this.getPokemon().getMaxHp() - +this.preventFullHeal);
}
}