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
|
||||
applyAbAttrs(InfiltratorAbAttr, user, null, false, bypassed);
|
||||
|
||||
return !user.hasAbility(Abilities.INFILTRATOR)
|
||||
return !bypassed.value
|
||||
&& !this.hasFlag(MoveFlags.SOUND_BASED)
|
||||
&& !this.hasFlag(MoveFlags.IGNORE_SUBSTITUTE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue