From 73160df3058cc1e05602645b86badf4679ad9414 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 15 Jul 2013 20:36:30 +0200 Subject: [PATCH] Added option to deactivate target copy for CreateDelayedTriggeredAbilityEffect. --- .../CreateDelayedTriggeredAbilityEffect.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/CreateDelayedTriggeredAbilityEffect.java b/Mage/src/mage/abilities/effects/common/CreateDelayedTriggeredAbilityEffect.java index 0e75989241..923bc44538 100644 --- a/Mage/src/mage/abilities/effects/common/CreateDelayedTriggeredAbilityEffect.java +++ b/Mage/src/mage/abilities/effects/common/CreateDelayedTriggeredAbilityEffect.java @@ -28,9 +28,6 @@ package mage.abilities.effects.common; -import mage.constants.AttachmentType; -import mage.constants.Duration; -import mage.constants.Outcome; import mage.abilities.Ability; import mage.abilities.DelayedTriggeredAbility; import mage.abilities.Mode; @@ -44,15 +41,22 @@ import mage.game.Game; public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect { protected DelayedTriggeredAbility ability; + protected boolean copyTargets; public CreateDelayedTriggeredAbilityEffect(DelayedTriggeredAbility ability) { + this(ability, true); + } + + public CreateDelayedTriggeredAbilityEffect(DelayedTriggeredAbility ability, boolean copyTargets) { super(ability.getEffects().get(0).getOutcome()); this.ability = ability; + this.copyTargets = copyTargets; } public CreateDelayedTriggeredAbilityEffect(final CreateDelayedTriggeredAbilityEffect effect) { super(effect); this.ability = effect.ability.copy(); + this.copyTargets = effect.copyTargets; } @Override @@ -65,7 +69,9 @@ public class CreateDelayedTriggeredAbilityEffect extends OneShotEffect