From 09271dada9b7d23d571728e4ba006edaa90d644e Mon Sep 17 00:00:00 2001 From: Marty-D Date: Thu, 27 Oct 2016 16:34:53 -0400 Subject: [PATCH] Add Psychic Terrain messages --- js/battle.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/js/battle.js b/js/battle.js index 30d67ef9d..801b4e6b8 100644 --- a/js/battle.js +++ b/js/battle.js @@ -5323,6 +5323,9 @@ var Battle = (function () { case 'mistyterrain': actions += '' + poke.getName() + ' surrounds itself with a protective mist!'; break; + case 'psychicterrain': + actions += '' + poke.getName() + ' surrounds itself with psychic terrain!'; + break; // ability activations case 'magicbounce': @@ -5538,10 +5541,11 @@ var Battle = (function () { this.message('', "[" + poke.getName(true) + "'s " + fromeffect.name + "!]"); poke.markAbility(fromeffect.name); } - if (effect.id in {'electricterrain': 1, 'grassyterrain': 1, 'mistyterrain': 1}) { + if (effect.id in {'electricterrain': 1, 'grassyterrain': 1, 'mistyterrain': 1, 'psychicterrain': 1}) { this.removePseudoWeather('Electric Terrain'); this.removePseudoWeather('Grassy Terrain'); this.removePseudoWeather('Misty Terrain'); + this.removePseudoWeather('Psychic Terrain'); } this.addPseudoWeather(effect.name, poke); @@ -5583,6 +5587,9 @@ var Battle = (function () { case 'electricterrain': actions += "An electric current runs across the battlefield!"; break; + case 'psychicterrain': + actions += "The battlefield got weird!"; + break; default: actions += effect.name + " started!"; break; @@ -5622,6 +5629,9 @@ var Battle = (function () { case 'electricterrain': actions += "The electricity disappeared from the battlefield."; break; + case 'psychicterrain': + actions += "The weirdness disappeared from the battlefield!"; + break; default: actions += effect.name + " ended!"; break;