From b732992ffd1c62a219f2b516214e95173fa748f1 Mon Sep 17 00:00:00 2001 From: Athebyne <30442287+f-raZ0R@users.noreply.github.com> Date: Thu, 9 May 2024 14:37:19 -0400 Subject: [PATCH] Add Comment --- src/phases.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/phases.ts b/src/phases.ts index 8c25aee2f3f..7aacf0ad6ac 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2211,6 +2211,7 @@ export class MovePhase extends BattlePhase { ? new Utils.IntegerHolder(this.targets[0]) : null; if (moveTarget) { + //If user has an ability preventing moves from being redirected, or is using a move that can not be redirected (i.e. Snipe Shot), don't redirect it. if (!(this.pokemon.hasAbilityWithAttr(BlockRedirectAbAttr) || this.move.getMove().getAttrs(BypassRedirectAttr).length) ) { this.scene.getField(true).filter(p => p !== this.pokemon).forEach(p => applyAbAttrs(RedirectMoveAbAttr, p, null, this.move.moveId, moveTarget));