Show real HP in debug mode

This commit is contained in:
Guangcong Luo 2013-04-07 21:39:59 -07:00
parent 8bbf7962c0
commit 00a449473a

View File

@ -924,7 +924,7 @@ var BattlePokemon = (function() {
BattlePokemon.prototype.getHealth = function(realHp) {
if (!this.hp) return '0 fnt';
var hpstring;
if (realHp) {
if (realHp || this.getFormat().debug) {
hpstring = ''+this.hp+'/'+this.maxhp;
} else {
var ratio = this.hp / this.maxhp;