Fix move names in tooltips when no PP used

This commit is contained in:
Guangcong Luo 2016-01-06 18:45:42 -05:00
parent ae2adee98a
commit f17ae9a437

View File

@ -411,7 +411,7 @@ var BattleTooltips = (function () {
}
maxpp = Math.floor(maxpp * 8 / 5);
}
if (!ppUsed) return '';
if (!ppUsed) return move.name;
return move.name + ' <small>(' + (maxpp - ppUsed) + '/' + maxpp + ')</small>';
};