support "EachCreates"

This commit is contained in:
Northmoc
2022-05-18 09:02:15 -04:00
parent 81f292a194
commit 40ac36a9b5

View File

@@ -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);
}