1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-14 09:09:38 -09:00

Implemented Glimpse of Freedom

This commit is contained in:
Evan Kranzler 2020-01-01 10:32:40 -05:00
parent 09b8177a37
commit 14b002bce6
3 changed files with 36 additions and 1 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/abilities/keyword

View file

@ -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);
}
}

View file

@ -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));

View file

@ -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. <i>(You may cast this card from your graveyard for its escape cost.)</i>";
}
}