diff --git a/Mage.Sets/src/mage/cards/e/EdgewallInnkeeper.java b/Mage.Sets/src/mage/cards/e/EdgewallInnkeeper.java new file mode 100644 index 0000000000..95ef140f1f --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EdgewallInnkeeper.java @@ -0,0 +1,50 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterSpell; +import mage.filter.common.FilterCreatureSpell; +import mage.filter.predicate.mageobject.AdventurePredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EdgewallInnkeeper extends CardImpl { + + private static final FilterSpell filter + = new FilterCreatureSpell("a creature spell that has an Adventure"); + + static { + filter.add(AdventurePredicate.instance); + } + + public EdgewallInnkeeper(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.PEASANT); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Whenever you cast a creature spell that has an Adventure, draw a card. + this.addAbility(new SpellCastControllerTriggeredAbility( + new DrawCardSourceControllerEffect(1), filter, false + )); + } + + private EdgewallInnkeeper(final EdgewallInnkeeper card) { + super(card); + } + + @Override + public EdgewallInnkeeper copy() { + return new EdgewallInnkeeper(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java index e97d420812..80cf873746 100644 --- a/Mage.Sets/src/mage/sets/ThroneOfEldraine.java +++ b/Mage.Sets/src/mage/sets/ThroneOfEldraine.java @@ -55,6 +55,7 @@ public final class ThroneOfEldraine extends ExpansionSet { cards.add(new SetCardInfo("Crystal Slipper", 119, Rarity.COMMON, mage.cards.c.CrystalSlipper.class)); cards.add(new SetCardInfo("Curious Pair", 150, Rarity.COMMON, mage.cards.c.CuriousPair.class)); cards.add(new SetCardInfo("Doom Foretold", 187, Rarity.RARE, mage.cards.d.DoomForetold.class)); + cards.add(new SetCardInfo("Edgewall Innkeeper", 151, Rarity.UNCOMMON, mage.cards.e.EdgewallInnkeeper.class)); cards.add(new SetCardInfo("Elite Headhunter", 209, Rarity.UNCOMMON, mage.cards.e.EliteHeadhunter.class)); cards.add(new SetCardInfo("Embercleave", 120, Rarity.MYTHIC, mage.cards.e.Embercleave.class)); cards.add(new SetCardInfo("Embereth Paladin", 121, Rarity.COMMON, mage.cards.e.EmberethPaladin.class));