Don't display 100% HP lost if HP still exists (#1811)

This commit is contained in:
Leonard Craft III
2021-05-24 20:37:33 -05:00
committed by GitHub
parent 7a759c2ced
commit 31a0957e5b

View File

@@ -1408,6 +1408,7 @@ class BattleScene {
callback = () => { $hp.addClass('hp-yellow hp-red'); };
}
if (damage === '100%' && pokemon.hp > 0) damage = '99%';
this.resultAnim(pokemon, this.battle.hardcoreMode ? 'Damage' : '−' + damage, 'bad');
$hp.animate({