Fix `hitsSubstitute`

This commit is contained in:
innerthunder 2024-10-11 00:17:19 -07:00
parent d4acc3faec
commit 68cdbaaa3a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}