Fix Klutz interaction with EV items

This commit is contained in:
Marty-D 2017-01-02 20:08:40 -05:00 committed by GitHub
parent e7feb63f6c
commit a96703d19e

View File

@ -418,7 +418,7 @@ class BattlePokemon {
return !!((this.battle.gen >= 5 && !this.isActive) || (this.volatiles['gastroacid'] && !(this.ability in {comatose:1, multitype:1, schooling:1, stancechange:1})));
}
ignoringItem() {
return !!((this.battle.gen >= 5 && !this.isActive) || this.hasAbility('klutz') || this.volatiles['embargo'] || this.battle.pseudoWeather['magicroom']);
return !!((this.battle.gen >= 5 && !this.isActive) || (this.hasAbility('klutz') && !this.getItem().ignoreKlutz) || this.volatiles['embargo'] || this.battle.pseudoWeather['magicroom']);
}
deductPP(move, amount, source) {
move = this.battle.getMove(move);