Track PP reduced by Spite

This commit is contained in:
Marty-D
2015-08-22 11:54:37 -04:00
parent 4dd517481c
commit fbebc718c7

View File

@@ -4716,7 +4716,10 @@ var Battle = (function () {
}
break;
case 'spite':
actions += "It reduced the PP of " + poke.getLowerName() + "'s " + Tools.getMove(args[3]).name + " by " + Tools.escapeHTML(args[4]) + "!";
var move = Tools.getMove(args[3]).name;
var pp = Tools.escapeHTML(args[4]);
actions += "It reduced the PP of " + poke.getLowerName() + "'s " + move + " by " + pp + "!";
poke.markMove(move, Number(pp));
break;
case 'gravity':
actions += "" + poke.getName() + " couldn't stay airborne because of gravity!";