mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-30 21:29:19 -05:00
Fix Klutz interaction with EV items
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user