From 0a9adededeacb7285e6e32b5bf1277e245af91d5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 12 Jan 2019 12:50:10 -0500 Subject: [PATCH] fixed Arrester's Admonition --- Mage.Sets/src/mage/cards/a/ArrestersAdmonition.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/ArrestersAdmonition.java b/Mage.Sets/src/mage/cards/a/ArrestersAdmonition.java index cf3ee99fb9..27656402f5 100644 --- a/Mage.Sets/src/mage/cards/a/ArrestersAdmonition.java +++ b/Mage.Sets/src/mage/cards/a/ArrestersAdmonition.java @@ -1,6 +1,9 @@ package mage.cards.a; +import mage.abilities.condition.common.AddendumCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.ReturnToHandTargetEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; @@ -16,15 +19,15 @@ public final class ArrestersAdmonition extends CardImpl { public ArrestersAdmonition(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); - // Return target creature to its owner's hand. - this.getSpellAbility().addEffect(new ReturnToHandTargetPermanentEffect()); + this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()); this.getSpellAbility().addTarget(new TargetCreaturePermanent()); // Addendum — If you cast this spell during your main phase, draw a card. - this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1) - .setText("
Addendum — If you cast this spell during your main phase, draw a card.") - ); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new DrawCardSourceControllerEffect(1), AddendumCondition.instance, + "
Addendum — If you cast this spell during your main phase, draw a card." + )); } private ArrestersAdmonition(final ArrestersAdmonition card) {