mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
support "EachCreates"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user