From a7c06e53e03fe8b769f9162de0d4e36bc188b6cf Mon Sep 17 00:00:00 2001 From: "richard.coates" Date: Sat, 29 Jun 2019 13:09:49 +0100 Subject: [PATCH] Implement Tale's End. --- Mage.Sets/src/mage/cards/t/TalesEnd.java | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TalesEnd.java diff --git a/Mage.Sets/src/mage/cards/t/TalesEnd.java b/Mage.Sets/src/mage/cards/t/TalesEnd.java new file mode 100644 index 00000000000..1188d08c4b9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TalesEnd.java @@ -0,0 +1,35 @@ +package mage.cards.t; + +import java.util.UUID; + +import mage.abilities.effects.common.CounterTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetActivatedOrTriggeredAbilityOrLegendarySpell; + +/** + * + * @author rscoates + */ +public final class TalesEnd extends CardImpl { + + public TalesEnd(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + + // Counter target activated ability, triggered ability, or legendary spell. + // Counter target activated or triggered ability. + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addTarget(new TargetActivatedOrTriggeredAbilityOrLegendarySpell()); + } + + private TalesEnd(final TalesEnd card) { + super(card); + } + + @Override + public TalesEnd copy() { + return new TalesEnd(this); + } +}