mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Add activation for all abilities that call -boost
This commit is contained in:
13
js/battle.js
13
js/battle.js
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user