Move redirection abilities ignore own moves

This commit is contained in:
Flashfyre 2024-03-12 08:44:05 -04:00
parent 71e820f149
commit 6dbbc50139

View File

@ -1872,7 +1872,7 @@ export class MovePhase extends BattlePhase {
? new Utils.IntegerHolder(this.targets[0]) ? new Utils.IntegerHolder(this.targets[0])
: null; : null;
if (moveTarget) { 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; this.targets[0] = moveTarget.value;
} }