From 7e799ef5bcc186e6a63c815e9956dce05accb3be Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 23 Sep 2018 09:22:14 -0400 Subject: [PATCH] fixed confusing Artful Takedown targeting --- .../src/mage/cards/a/ArtfulTakedown.java | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/ArtfulTakedown.java b/Mage.Sets/src/mage/cards/a/ArtfulTakedown.java index 21a679dd64..a4e457c2d6 100644 --- a/Mage.Sets/src/mage/cards/a/ArtfulTakedown.java +++ b/Mage.Sets/src/mage/cards/a/ArtfulTakedown.java @@ -8,6 +8,7 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; +import mage.filter.common.FilterCreaturePermanent; import mage.target.common.TargetCreaturePermanent; /** @@ -16,6 +17,11 @@ import mage.target.common.TargetCreaturePermanent; */ public final class ArtfulTakedown extends CardImpl { + private static final FilterCreaturePermanent filter1 + = new FilterCreaturePermanent("creature (to tap)"); + private static final FilterCreaturePermanent filter2 + = new FilterCreaturePermanent("creature (to shrink)"); + public ArtfulTakedown(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}{B}"); @@ -24,13 +30,17 @@ public final class ArtfulTakedown extends CardImpl { this.getSpellAbility().getModes().setMaxModes(2); // • Tap target creature. - this.getSpellAbility().addEffect(new TapTargetEffect()); - this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellAbility().addEffect( + new TapTargetEffect().setText("tap target creature") + ); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter1)); // • Target creature gets -2/-4 until end of turn. - Mode mode = new Mode(); - mode.getEffects().add(new BoostTargetEffect(-2, -4, Duration.EndOfTurn)); - mode.getTargets().add(new TargetCreaturePermanent()); + Mode mode = new Mode( + new BoostTargetEffect(-2, -4, Duration.EndOfTurn) + .setText("target creature gets -2/-4 until end of turn") + ); + mode.addTarget(new TargetCreaturePermanent(filter2)); this.getSpellAbility().addMode(mode); }