Gen 3: Traced Abilities don't run Start events

Specifically, things like Intimidate don't happen when Traced.
This commit is contained in:
Guangcong Luo 2014-08-11 05:48:38 -04:00
parent b0a85dd33b
commit 065e293c29

View File

@ -1019,7 +1019,7 @@ BattlePokemon = (function () {
if (oldAbility in {multitype:1, stancechange:1}) return false;
this.ability = ability.id;
this.abilityData = {id: ability.id, target: this};
if (ability.id) {
if (ability.id && this.gen > 3) {
this.battle.singleEvent('Start', ability, this.abilityData, this, source, effect);
}
return oldAbility;