From f9b16e53fb7195f0699cd273f2801022d4bb74b4 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 12 Jun 2020 08:25:26 -0400 Subject: [PATCH] Implemented Tolarian Kraken --- .../src/mage/cards/t/TolarianKraken.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TolarianKraken.java diff --git a/Mage.Sets/src/mage/cards/t/TolarianKraken.java b/Mage.Sets/src/mage/cards/t/TolarianKraken.java new file mode 100644 index 0000000000..8fc46dbd91 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TolarianKraken.java @@ -0,0 +1,49 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.common.DrawCardControllerTriggeredAbility; +import mage.abilities.common.delayed.ReflexiveTriggeredAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.DoWhenCostPaid; +import mage.abilities.effects.common.MayTapOrUntapTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TolarianKraken extends CardImpl { + + public TolarianKraken(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}{U}"); + + this.subtype.add(SubType.KRAKEN); + this.power = new MageInt(4); + this.toughness = new MageInt(6); + + // Whenever you draw a card, you may pay {1}. When you do, you may tap or untap target creature. + ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility( + new MayTapOrUntapTargetEffect(), false, + "you may tap or untap target creature" + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(new DrawCardControllerTriggeredAbility(new DoWhenCostPaid( + ability, new GenericManaCost(1), + "Pay {1} to tap or untap a permanent?" + ), false)); + } + + private TolarianKraken(final TolarianKraken card) { + super(card); + } + + @Override + public TolarianKraken copy() { + return new TolarianKraken(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index f6ce3f540f..267db69735 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -151,6 +151,7 @@ public final class CoreSet2021 extends ExpansionSet { cards.add(new SetCardInfo("Temple of Triumph", 256, Rarity.RARE, mage.cards.t.TempleOfTriumph.class)); cards.add(new SetCardInfo("Thieves' Guild Enforcer", 125, Rarity.RARE, mage.cards.t.ThievesGuildEnforcer.class)); cards.add(new SetCardInfo("Tide Skimmer", 79, Rarity.UNCOMMON, mage.cards.t.TideSkimmer.class)); + cards.add(new SetCardInfo("Tolarian Kraken", 80, Rarity.UNCOMMON, mage.cards.t.TolarianKraken.class)); cards.add(new SetCardInfo("Tormod's Crypt", 241, Rarity.UNCOMMON, mage.cards.t.TormodsCrypt.class)); cards.add(new SetCardInfo("Trufflesnout", 212, Rarity.COMMON, mage.cards.t.Trufflesnout.class)); cards.add(new SetCardInfo("Ugin, the Spirit Dragon", 1, Rarity.MYTHIC, mage.cards.u.UginTheSpiritDragon.class));