From 3e28f7585bd75b990ae9c1a1d59aaf442b0889d7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 1 Mar 2022 18:27:25 -0500 Subject: [PATCH] [Y22] Implemented Expedition Supplier --- .../src/mage/cards/e/ExpeditionSupplier.java | 44 +++++++++++++++++++ Mage.Sets/src/mage/sets/AlchemyInnistrad.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ExpeditionSupplier.java diff --git a/Mage.Sets/src/mage/cards/e/ExpeditionSupplier.java b/Mage.Sets/src/mage/cards/e/ExpeditionSupplier.java new file mode 100644 index 0000000000..b79994cae3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ExpeditionSupplier.java @@ -0,0 +1,44 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility; +import mage.abilities.effects.common.ConjureCardEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; +import mage.filter.FilterPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ExpeditionSupplier extends CardImpl { + + private static final FilterPermanent filter = new FilterPermanent(SubType.HUMAN, "Human"); + + public ExpeditionSupplier(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever Expedition Supplier or another Human enters the battlefield under your control, conjure a card named Utility Knife onto the battlefield. This ability triggers only once each turn. + this.addAbility(new EntersBattlefieldThisOrAnotherTriggeredAbility(new ConjureCardEffect( + "Utility Knife", Zone.BATTLEFIELD, 1 + ), filter, false, true).setTriggersOnce(true)); + } + + private ExpeditionSupplier(final ExpeditionSupplier card) { + super(card); + } + + @Override + public ExpeditionSupplier copy() { + return new ExpeditionSupplier(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AlchemyInnistrad.java b/Mage.Sets/src/mage/sets/AlchemyInnistrad.java index 6092fc105e..111401a129 100644 --- a/Mage.Sets/src/mage/sets/AlchemyInnistrad.java +++ b/Mage.Sets/src/mage/sets/AlchemyInnistrad.java @@ -22,6 +22,7 @@ public final class AlchemyInnistrad extends ExpansionSet { cards.add(new SetCardInfo("Citystalker Connoisseur", 27, Rarity.RARE, mage.cards.c.CitystalkerConnoisseur.class)); cards.add(new SetCardInfo("Cursebound Witch", 24, Rarity.UNCOMMON, mage.cards.c.CurseboundWitch.class)); + cards.add(new SetCardInfo("Expedition Supplier", 6, Rarity.RARE, mage.cards.e.ExpeditionSupplier.class)); cards.add(new SetCardInfo("Faithful Disciple", 7, Rarity.UNCOMMON, mage.cards.f.FaithfulDisciple.class)); cards.add(new SetCardInfo("Ishkanah, Broodmother", 52, Rarity.MYTHIC, mage.cards.i.IshkanahBroodmother.class)); cards.add(new SetCardInfo("Key to the Archive", 59, Rarity.RARE, mage.cards.k.KeyToTheArchive.class));