From ef56dd4a830e790a5792e5380089c0095bcbc40e Mon Sep 17 00:00:00 2001 From: Marty-D Date: Sat, 17 Dec 2016 10:44:01 -0500 Subject: [PATCH] Add Spectral Thief and Speed Swap messages --- js/battle.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/battle.js b/js/battle.js index 4986d01b5..dd6d97155 100644 --- a/js/battle.js +++ b/js/battle.js @@ -3231,7 +3231,7 @@ var Battle = (function () { } if (!kwargs.silent) { if (kwargs.zeffect) { - this.message('' + pokemon.getName() + ' unleashes its full force Z-Move!', ''); + this.message('' + pokemon.getName() + ' unleashes its full-force Z-Move!', ''); } switch (fromeffect.id) { case 'snatch': @@ -3892,6 +3892,8 @@ var Battle = (function () { break; case '-clearpositiveboost': var poke = this.getPokemon(args[1]); + var ofpoke = this.getPokemon(args[2]); + var effect = Tools.getEffect(args[3]); for (i in poke.boosts) { if (poke.boosts[i] > 0) delete poke.boosts[i]; } @@ -3899,6 +3901,12 @@ var Battle = (function () { if (kwargs.silent) { // do nothing + } else if (effect.id) { + switch (effect.id) { + case 'spectralthief': + actions += '' + ofpoke.getName() + ' stole the target\'s boosted stats!'; + break; + } } break; case '-clearnegativeboost': @@ -5447,6 +5455,9 @@ var Battle = (function () { case 'guardsplit': actions += '' + poke.getName() + ' shared its guard with the target!'; break; + case 'speedswap': + actions += '' + poke.getName() + ' switched Speed with its target!'; + break; case 'ingrain': actions += '' + poke.getName() + ' anchored itself with its roots!'; break;