From 148ac9c13f89a4da3d758affe9e6949530390201 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 4 Apr 2021 11:50:30 -0400 Subject: [PATCH] [STX] Implemented Unwilling Ingredient --- .../src/mage/cards/u/UnwillingIngredient.java | 54 +++++++++++++++++++ .../mage/sets/StrixhavenSchoolOfMages.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UnwillingIngredient.java diff --git a/Mage.Sets/src/mage/cards/u/UnwillingIngredient.java b/Mage.Sets/src/mage/cards/u/UnwillingIngredient.java new file mode 100644 index 0000000000..a8a75e2d28 --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UnwillingIngredient.java @@ -0,0 +1,54 @@ +package mage.cards.u; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExileSourceFromGraveCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class UnwillingIngredient extends CardImpl { + + public UnwillingIngredient(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}"); + + this.subtype.add(SubType.FROG); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Menace + this.addAbility(new MenaceAbility()); + + // {2}{B}, Exile Unwilling Ingredient from your graveyard: You draw a card and you lose 1 life. + Ability ability = new SimpleActivatedAbility( + Zone.GRAVEYARD, + new DrawCardSourceControllerEffect(1) + .setText("you draw a card"), + new ManaCostsImpl("{2}{B}") + ); + ability.addEffect(new LoseLifeSourceControllerEffect(1).concatBy("and")); + ability.addCost(new ExileSourceFromGraveCost()); + this.addAbility(ability); + } + + private UnwillingIngredient(final UnwillingIngredient card) { + super(card); + } + + @Override + public UnwillingIngredient copy() { + return new UnwillingIngredient(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index 29791c4b1d..e431885d19 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -218,6 +218,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Torrent Sculptor", 159, Rarity.RARE, mage.cards.t.TorrentSculptor.class)); cards.add(new SetCardInfo("Twinscroll Shaman", 118, Rarity.COMMON, mage.cards.t.TwinscrollShaman.class)); cards.add(new SetCardInfo("Umbral Juke", 89, Rarity.UNCOMMON, mage.cards.u.UmbralJuke.class)); + cards.add(new SetCardInfo("Unwilling Ingredient", 90, Rarity.COMMON, mage.cards.u.UnwillingIngredient.class)); cards.add(new SetCardInfo("Valentin, Dean of the Vein", 161, Rarity.RARE, mage.cards.v.ValentinDeanOfTheVein.class)); cards.add(new SetCardInfo("Vanishing Verse", 244, Rarity.RARE, mage.cards.v.VanishingVerse.class)); cards.add(new SetCardInfo("Venerable Warsinger", 246, Rarity.RARE, mage.cards.v.VenerableWarsinger.class));