From 09d1f548b421322ca51e119040cee8cf4d0925e4 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 2 Nov 2021 19:08:30 -0400 Subject: [PATCH] [VOW] Implemented Thirst for Discovery --- .../src/mage/cards/t/ThirstForDiscovery.java | 39 +++++++++++++++++++ .../src/mage/sets/InnistradCrimsonVow.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/ThirstForDiscovery.java diff --git a/Mage.Sets/src/mage/cards/t/ThirstForDiscovery.java b/Mage.Sets/src/mage/cards/t/ThirstForDiscovery.java new file mode 100644 index 0000000000..2711a2ae36 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/ThirstForDiscovery.java @@ -0,0 +1,39 @@ +package mage.cards.t; + +import mage.abilities.costs.common.DiscardCardCost; +import mage.abilities.effects.common.DoIfCostPaid; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.discard.DiscardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ThirstForDiscovery extends CardImpl { + + public ThirstForDiscovery(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); + + // Draw three cards. Then discard two cards unless you discard a basic land card. + DiscardCardCost cost = new DiscardCardCost(StaticFilters.FILTER_CARD_BASIC_LAND_A); + cost.setText("discard a basic land card instead of discarding two cards"); + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(3)); + this.getSpellAbility().addEffect(new DoIfCostPaid( + null, new DiscardControllerEffect(2), cost + ).setText("Then discard two cards unless you discard a basic land card")); + } + + private ThirstForDiscovery(final ThirstForDiscovery card) { + super(card); + } + + @Override + public ThirstForDiscovery copy() { + return new ThirstForDiscovery(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java index 64f0c429d5..df56a7fc61 100644 --- a/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java +++ b/Mage.Sets/src/mage/sets/InnistradCrimsonVow.java @@ -99,6 +99,7 @@ public final class InnistradCrimsonVow extends ExpansionSet { cards.add(new SetCardInfo("Swamp", 272, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Syncopate", 83, Rarity.COMMON, mage.cards.s.Syncopate.class)); cards.add(new SetCardInfo("Thalia, Guardian of Thraben", 38, Rarity.RARE, mage.cards.t.ThaliaGuardianOfThraben.class)); + cards.add(new SetCardInfo("Thirst for Discovery", 85, Rarity.UNCOMMON, mage.cards.t.ThirstForDiscovery.class)); cards.add(new SetCardInfo("Torens, Fist of the Angels", 249, Rarity.RARE, mage.cards.t.TorensFistOfTheAngels.class)); cards.add(new SetCardInfo("Twinblade Geist", 40, Rarity.UNCOMMON, mage.cards.t.TwinbladeGeist.class)); cards.add(new SetCardInfo("Twinblade Invocation", 40, Rarity.UNCOMMON, mage.cards.t.TwinbladeInvocation.class));