Add activation for all abilities that call -boost

This commit is contained in:
The Immortal
2015-08-08 00:54:29 +04:00
parent 0a3f91ee91
commit e626dbeaa1

View File

@@ -3377,17 +3377,14 @@ var Battle = (function () {
var effect = Tools.getEffect(kwargs.from);
var ofpoke = this.getPokemon(kwargs.of);
switch (effect.id) {
case 'competitive':
case 'defiant':
this.resultAnim(poke, effect.name, 'ability', animDelay);
this.message('', "<small>[" + poke.getName(true) + "'s " + effect.name + "!]</small>");
actions += "" + poke.getName() + "'s " + BattleStats[stat] + " rose " + amountString + "!";
break;
default:
if (effect.effectType === 'Ability') {
this.resultAnim(poke, effect.name, 'ability', animDelay);
this.message('', "<small>[" + poke.getName(true) + "'s " + effect.name + "!]</small>");
actions += "" + poke.getName() + "'s " + BattleStats[stat] + " rose" + amountString + "!";
}
if (effect.effectType === 'Item') {
actions += "The " + effect.name + amountString + " raised " + poke.getLowerName() + "'s " + BattleStats[stat] + "!";
} else {
actions += "" + poke.getName() + "'s " + effect.name + amountString + " raised its " + BattleStats[stat] + "!";
}
break;
}