mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- When making token copies of permanents, set the copied permanent so that its CMC can be calculated.
This commit is contained in:
@@ -168,11 +168,13 @@ public class CopyPermanentEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
for (final Card c : tgtCards) {
|
for (final Card c : tgtCards) {
|
||||||
if (!sa.usesTargeting() || c.canBeTargetedBy(sa)) {
|
if (!sa.usesTargeting() || c.canBeTargetedBy(sa)) {
|
||||||
List <Card> token = TokenInfo.makeToken(getProtoType(sa, c), controller, true, numCopies);
|
Card proto = getProtoType(sa, c);
|
||||||
|
List <Card> token = TokenInfo.makeToken(proto, controller, true, numCopies);
|
||||||
|
|
||||||
final List<Card> crds = Lists.newArrayListWithCapacity(token.size());
|
final List<Card> crds = Lists.newArrayListWithCapacity(token.size());
|
||||||
|
|
||||||
for (final Card t : token) {
|
for (final Card t : token) {
|
||||||
|
t.setCopiedPermanent(proto);
|
||||||
|
|
||||||
// Temporarily register triggers of an object created with CopyPermanent
|
// Temporarily register triggers of an object created with CopyPermanent
|
||||||
//game.getTriggerHandler().registerActiveTrigger(copy, false);
|
//game.getTriggerHandler().registerActiveTrigger(copy, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user