From 14b002bce6ed2b0e38e1523cb81bdd91bf26a518 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 1 Jan 2020 10:32:40 -0500 Subject: [PATCH] Implemented Glimpse of Freedom --- .../src/mage/cards/g/GlimpseOfFreedom.java | 34 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + .../mage/abilities/keyword/EscapeAbility.java | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/g/GlimpseOfFreedom.java diff --git a/Mage.Sets/src/mage/cards/g/GlimpseOfFreedom.java b/Mage.Sets/src/mage/cards/g/GlimpseOfFreedom.java new file mode 100644 index 00000000000..79ec1e63d58 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GlimpseOfFreedom.java @@ -0,0 +1,34 @@ +package mage.cards.g; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.EscapeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GlimpseOfFreedom extends CardImpl { + + public GlimpseOfFreedom(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Draw a card. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); + + // Escape — {2}{U}, Exile five other cards from your graveyard. + this.addAbility(new EscapeAbility(this, "{2}{U}", 5)); + } + + private GlimpseOfFreedom(final GlimpseOfFreedom card) { + super(card); + } + + @Override + public GlimpseOfFreedom copy() { + return new GlimpseOfFreedom(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index a66bc4c5315..4042e92cba3 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -47,6 +47,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Field of Ruin", 242, Rarity.UNCOMMON, mage.cards.f.FieldOfRuin.class)); cards.add(new SetCardInfo("Forest", 254, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Gallia of the Endless Dance", 217, Rarity.RARE, mage.cards.g.GalliaOfTheEndlessDance.class)); + cards.add(new SetCardInfo("Glimpse of Freedom", 50, Rarity.UNCOMMON, mage.cards.g.GlimpseOfFreedom.class)); cards.add(new SetCardInfo("Grasping Giant", 288, Rarity.RARE, mage.cards.g.GraspingGiant.class)); cards.add(new SetCardInfo("Gray Merchant of Asphodel", 99, Rarity.UNCOMMON, mage.cards.g.GrayMerchantOfAsphodel.class)); cards.add(new SetCardInfo("Hero of the Winds", 23, Rarity.UNCOMMON, mage.cards.h.HeroOfTheWinds.class)); diff --git a/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java b/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java index 78961979a87..8535d48f6e0 100644 --- a/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/EscapeAbility.java @@ -57,7 +57,7 @@ public class EscapeAbility extends SpellAbility { @Override public String getRule() { - return "Escape — " + this.manaCost + ", Exile " + CardUtil.numberToText(this.exileCount) + + return "Escape—" + this.manaCost + ", Exile " + CardUtil.numberToText(this.exileCount) + " other cards from your graveyard. (You may cast this card from your graveyard for its escape cost.)"; } }