From 6dbbc501393d57f60007adcf119a3718854145da Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 12 Mar 2024 08:44:05 -0400 Subject: [PATCH] Move redirection abilities ignore own moves --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index e9fc8a4f5ea..08da7658a58 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1872,7 +1872,7 @@ export class MovePhase extends BattlePhase { ? new Utils.IntegerHolder(this.targets[0]) : null; if (moveTarget) { - this.scene.getField(true).forEach(p => applyAbAttrs(RedirectMoveAbAttr, p, null, this.move.moveId, moveTarget)); + this.scene.getField(true).filter(p => p !== this.pokemon).forEach(p => applyAbAttrs(RedirectMoveAbAttr, p, null, this.move.moveId, moveTarget)); this.targets[0] = moveTarget.value; }