From c4f29f649900a71cf334abda44e4c13169f0c3fe Mon Sep 17 00:00:00 2001 From: The Immortal Date: Tue, 29 Jan 2013 00:01:44 +0400 Subject: [PATCH] Update a few messages - Add Guard Swap and Heart Swap - Fix Spite --- js/battle.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/battle.js b/js/battle.js index 09d7830b6..3e139854e 100644 --- a/js/battle.js +++ b/js/battle.js @@ -2692,6 +2692,12 @@ function Battle(frame, logFrame, noPreload) { // do nothing } else if (effect.id) { switch (effect.id) { + case 'guardswap': + actions += '' + poke.getName() + ' switched all changes to its Defense and Sp. Def with the target!'; + break; + case 'heartswap': + actions += '' + poke.getName() + ' switched stat changes with the target!'; + break; case 'powerswap': actions += '' + poke.getName() + ' switched all changes to its Attack and Sp. Attack with the target!'; break; @@ -3592,7 +3598,7 @@ function Battle(frame, logFrame, noPreload) { actions += "" + poke.getName() + " fell for the feint!"; break; case 'spite': - actions += "It reduced the PP of " + args[3] + " by " + args[4] + "!"; + actions += "It reduced the PP of " poke.getLowerName() + "'s " + Tools.getMove(args[3]).name + " by " + args[4] + "!"; break; case 'gravity': actions += "" + poke.getName() + " couldn't stay airborne because of gravity!";