From c99011f157d9fc0ae491cd41ccc8ee09d16a39ff Mon Sep 17 00:00:00 2001 From: Marty-D Date: Fri, 1 Jul 2016 10:45:03 -0400 Subject: [PATCH] Prepare for Terrain-starting Abilities --- js/battle.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/battle.js b/js/battle.js index c5ec8a008..69a861230 100644 --- a/js/battle.js +++ b/js/battle.js @@ -5451,6 +5451,12 @@ var Battle = (function () { case '-fieldstart': var effect = Tools.getEffect(args[1]); var poke = this.getPokemon(kwargs.of); + var fromeffect = Tools.getEffect(kwargs.from); + if (fromeffect && fromeffect.effectType === 'Ability') { + this.resultAnim(poke, fromeffect.name, 'ability'); + this.message('', "[" + poke.getName(true) + "'s " + fromeffect.name + "!]"); + poke.markAbility(fromeffect.name); + } this.addPseudoWeather(effect.name, poke); switch (effect.id) {