mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-23 15:59:26 +02:00
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
Block a user