diff --git a/Mage.Sets/src/mage/sets/theros/ArtisanOfForms.java b/Mage.Sets/src/mage/sets/theros/ArtisanOfForms.java index a4bac2eb32..e677b6f988 100644 --- a/Mage.Sets/src/mage/sets/theros/ArtisanOfForms.java +++ b/Mage.Sets/src/mage/sets/theros/ArtisanOfForms.java @@ -35,6 +35,7 @@ import mage.abilities.keyword.HeroicAbility; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; +import mage.filter.common.FilterCreaturePermanent; import mage.game.Game; import mage.game.permanent.Permanent; import mage.util.functions.ApplyToPermanent; @@ -56,7 +57,7 @@ public class ArtisanOfForms extends CardImpl { this.toughness = new MageInt(1); // Heroic - Whenever you cast a spell that targets Artisan of Forms, you may have Artisan of Forms become a copy of target creature and gain this ability. - Effect effect = new CopyPermanentEffect(new ArtisanOfFormsApplyToPermanent()); + Effect effect = new CopyPermanentEffect(new FilterCreaturePermanent(), new ArtisanOfFormsApplyToPermanent(), false); effect.setText("have {this} become a copy of target creature and gain this ability"); this.addAbility(new HeroicAbility(effect, true)); } diff --git a/Mage/src/mage/abilities/effects/common/CopyPermanentEffect.java b/Mage/src/mage/abilities/effects/common/CopyPermanentEffect.java index 4e18650e65..78ab490e72 100644 --- a/Mage/src/mage/abilities/effects/common/CopyPermanentEffect.java +++ b/Mage/src/mage/abilities/effects/common/CopyPermanentEffect.java @@ -49,6 +49,7 @@ public class CopyPermanentEffect extends OneShotEffect { private FilterPermanent filter; private ApplyToPermanent applier; private Permanent bluePrintPermanent; + private boolean notTarget; public CopyPermanentEffect() { this(new FilterCreaturePermanent()); @@ -63,9 +64,13 @@ public class CopyPermanentEffect extends OneShotEffect { } public CopyPermanentEffect(FilterPermanent filter, ApplyToPermanent applier) { + this(filter, applier, true); + } + public CopyPermanentEffect(FilterPermanent filter, ApplyToPermanent applier, boolean notTarget) { super(Outcome.Copy); this.applier = applier; this.filter = filter; + this.notTarget = notTarget; this.staticText = "You may have {this} enter the battlefield as a copy of any " + filter.getMessage() + " on the battlefield"; } @@ -74,6 +79,7 @@ public class CopyPermanentEffect extends OneShotEffect { this.filter = effect.filter.copy(); this.applier = effect.applier; this.bluePrintPermanent = effect.bluePrintPermanent; + this.notTarget = effect.notTarget; } @Override @@ -82,7 +88,7 @@ public class CopyPermanentEffect extends OneShotEffect { Permanent sourcePermanent = game.getPermanent(source.getSourceId()); if (player != null && sourcePermanent != null) { Target target = new TargetPermanent(filter); - target.setNotTarget(true); + target.setNotTarget(notTarget); if (target.canChoose(source.getControllerId(), game)) { player.choose(Outcome.Copy, target, source.getSourceId(), game); Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());