mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-23 19:41:47 -05:00
Show the move affected by Grudge as having 0 PP (#787)
This commit is contained in:
@@ -5116,7 +5116,7 @@ var Battle = (function () {
|
||||
break;
|
||||
case 'grudge':
|
||||
actions += "" + poke.getName() + "'s " + Tools.escapeHTML(args[3]) + " lost all of its PP due to the grudge!";
|
||||
poke.markMove(args[3], 64);
|
||||
poke.markMove(args[3], Infinity);
|
||||
break;
|
||||
case 'quickguard':
|
||||
poke.addTurnstatus('quickguard');
|
||||
|
||||
@@ -732,6 +732,7 @@ var BattleTooltips = (function () {
|
||||
}
|
||||
maxpp = Math.floor(maxpp * 8 / 5);
|
||||
}
|
||||
if (ppUsed === Infinity) return move.name + ' <small>(0/' + maxpp + ')</small>';
|
||||
if (!ppUsed) return move.name + (showKnown ? ' <small>(revealed)</small>' : '');
|
||||
return move.name + ' <small>(' + (maxpp - ppUsed) + '/' + maxpp + ')</small>';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user