mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Move redirection abilities ignore own moves
This commit is contained in:
parent
71e820f149
commit
6dbbc50139
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user