From 40ac36a9b5d9c745daaf40960b7fefcd706d7c4c Mon Sep 17 00:00:00 2001 From: Northmoc Date: Wed, 18 May 2022 09:02:15 -0400 Subject: [PATCH] support "EachCreates" --- .../java/forge/game/ability/effects/CopyPermanentEffect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forge-game/src/main/java/forge/game/ability/effects/CopyPermanentEffect.java b/forge-game/src/main/java/forge/game/ability/effects/CopyPermanentEffect.java index c969088479a..1832799d4ac 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/CopyPermanentEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/CopyPermanentEffect.java @@ -236,6 +236,10 @@ public class CopyPermanentEffect extends TokenEffectBase { proto.addRemembered(p); tokenTable.put(controller, proto, numCopies); } + } else if (sa.hasParam("EachCreates")) { + for (Player p : AbilityUtils.getDefinedPlayers(host, sa.getParam("EachCreates"), sa)) { + tokenTable.put(p, getProtoType(sa, c, p), numCopies); + } } else { tokenTable.put(controller, getProtoType(sa, c, controller), numCopies); }