Fix sign of point damage

This commit is contained in:
Cathy J. Fitzpatrick
2013-04-08 01:55:31 -06:00
parent 755a18a849
commit 88dd7c68c8

View File

@@ -109,7 +109,7 @@ function Pokemon(species) {
};
this.getFormattedRange = function (range, precision, separator) {
if (range[0] === range[1]) {
return (range[0] * 100).toFixed(precision) + '%';
return Math.abs(range[0] * 100).toFixed(precision) + '%';
}
var lower, upper;
if (precision === 0) {