From a96703d19ed1ea07c8442cd3eccf2aaf188fbb1d Mon Sep 17 00:00:00 2001 From: Marty-D Date: Mon, 2 Jan 2017 20:08:40 -0500 Subject: [PATCH] Fix Klutz interaction with EV items --- battle-engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battle-engine.js b/battle-engine.js index 3346547a52..e69b2cbde3 100644 --- a/battle-engine.js +++ b/battle-engine.js @@ -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);