From 5ac35907d16717b9466d87cdf2e88b2eebdc0cdb Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 31 Mar 2019 13:12:16 -0400 Subject: [PATCH] Implemented Ignite the Beacon --- .../src/mage/cards/i/IgniteTheBeacon.java | 36 +++++++++++++++++++ Mage.Sets/src/mage/sets/WarOfTheSpark.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/IgniteTheBeacon.java diff --git a/Mage.Sets/src/mage/cards/i/IgniteTheBeacon.java b/Mage.Sets/src/mage/cards/i/IgniteTheBeacon.java new file mode 100644 index 00000000000..194db2e7153 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IgniteTheBeacon.java @@ -0,0 +1,36 @@ +package mage.cards.i; + +import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.FilterCard; +import mage.target.common.TargetCardInLibrary; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IgniteTheBeacon extends CardImpl { + + private static final FilterCard filter = new FilterCard("planeswalker cards"); + + public IgniteTheBeacon(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{W}"); + + // Search your library for up to to two planeswalker cards, reveal them, put them into your hand, then shuffle your library. + this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect( + new TargetCardInLibrary(0, 2, filter), true + )); + } + + private IgniteTheBeacon(final IgniteTheBeacon card) { + super(card); + } + + @Override + public IgniteTheBeacon copy() { + return new IgniteTheBeacon(this); + } +} diff --git a/Mage.Sets/src/mage/sets/WarOfTheSpark.java b/Mage.Sets/src/mage/sets/WarOfTheSpark.java index e92c096a60d..1accba64578 100644 --- a/Mage.Sets/src/mage/sets/WarOfTheSpark.java +++ b/Mage.Sets/src/mage/sets/WarOfTheSpark.java @@ -29,6 +29,7 @@ public final class WarOfTheSpark extends ExpansionSet { cards.add(new SetCardInfo("Forest", 263, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Forest", 264, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Herald of the Dreadhorde", 93, Rarity.COMMON, mage.cards.h.HeraldOfTheDreadhorde.class)); + cards.add(new SetCardInfo("Ignite the Beacon", 18, Rarity.RARE, mage.cards.i.IgniteTheBeacon.class)); cards.add(new SetCardInfo("Invade the City", 201, Rarity.UNCOMMON, mage.cards.i.InvadeTheCity.class)); cards.add(new SetCardInfo("Island", 253, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Island", 254, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));