Fix `hitsSubstitute`
This commit is contained in:
parent
d4acc3faec
commit
68cdbaaa3a
|
@ -350,7 +350,7 @@ export default class Move implements Localizable {
|
||||||
// TODO: Allow this to be simulated
|
// TODO: Allow this to be simulated
|
||||||
applyAbAttrs(InfiltratorAbAttr, user, null, false, bypassed);
|
applyAbAttrs(InfiltratorAbAttr, user, null, false, bypassed);
|
||||||
|
|
||||||
return !user.hasAbility(Abilities.INFILTRATOR)
|
return !bypassed.value
|
||||||
&& !this.hasFlag(MoveFlags.SOUND_BASED)
|
&& !this.hasFlag(MoveFlags.SOUND_BASED)
|
||||||
&& !this.hasFlag(MoveFlags.IGNORE_SUBSTITUTE);
|
&& !this.hasFlag(MoveFlags.IGNORE_SUBSTITUTE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue