From 8a4324d14133e6fd7c11e293ec1702aeb9f0459b Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Sun, 24 Feb 2013 18:44:11 -0700 Subject: [PATCH] More changes to HP display --- js/battle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/battle.js b/js/battle.js index 39a7fc358..11c5b1187 100644 --- a/js/battle.js +++ b/js/battle.js @@ -2291,7 +2291,7 @@ function Battle(frame, logFrame, noPreload) { i = 0; } var w = pokemon.hpWidth(150); - self.resultAnim(pokemon, '−' + self.damageDisplay(damage), 'bad', i); + self.resultAnim(pokemon, '−' + pokemon.hpWidth(100) + '%', 'bad', i); pokemon.statbarElem.find('.hptext').html(pokemon.hpDisplay()); if (!self.fastForward) pokemon.statbarElem.find('div.hp').delay(self.animationDelay).animate({ width: w, @@ -2304,7 +2304,7 @@ function Battle(frame, logFrame, noPreload) { i = 0; } var w = pokemon.hpWidth(150); - self.resultAnim(pokemon, '+' + self.damageDisplay(damage), 'good', i); + self.resultAnim(pokemon, '+' + pokemon.hpWidth(100) + '%', 'good', i); pokemon.statbarElem.find('.hptext').html(pokemon.hpDisplay()); if (!self.fastForward) pokemon.statbarElem.find('div.hp').animate({ width: w,