mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 00:06:15 -05:00
Fix Klutz interaction with EV items
This commit is contained in:
parent
e7feb63f6c
commit
a96703d19e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user