From 420a28f19433f9e0aa6489981e6bdff95ee96986 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 29 May 2019 13:00:25 -0400 Subject: [PATCH] Implemented Echo of Eons --- Mage.Sets/src/mage/cards/e/EchoOfEons.java | 41 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/EchoOfEons.java diff --git a/Mage.Sets/src/mage/cards/e/EchoOfEons.java b/Mage.Sets/src/mage/cards/e/EchoOfEons.java new file mode 100644 index 0000000000..c831c4b65f --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EchoOfEons.java @@ -0,0 +1,41 @@ +package mage.cards.e; + +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.DrawCardAllEffect; +import mage.abilities.effects.common.ShuffleHandGraveyardAllEffect; +import mage.abilities.keyword.FlashbackAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TimingRule; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EchoOfEons extends CardImpl { + + public EchoOfEons(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}{U}"); + + // Each player shuffles their hand and graveyard into their library, then draws seven cards. + this.getSpellAbility().addEffect(new ShuffleHandGraveyardAllEffect()); + Effect effect = new DrawCardAllEffect(7); + effect.setText(", then draws seven cards"); + this.getSpellAbility().addEffect(effect); + + // Flashback {2}{U} + this.addAbility(new FlashbackAbility(new ManaCostsImpl("{2}{U}"), TimingRule.SORCERY)); + } + + private EchoOfEons(final EchoOfEons card) { + super(card); + } + + @Override + public EchoOfEons copy() { + return new EchoOfEons(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index b7be714a17..1da33eda88 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -54,6 +54,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Diabolic Edict", 87, Rarity.COMMON, mage.cards.d.DiabolicEdict.class)); cards.add(new SetCardInfo("Dismantling Blow", 5, Rarity.UNCOMMON, mage.cards.d.DismantlingBlow.class)); cards.add(new SetCardInfo("Dregscape Sliver", 88, Rarity.UNCOMMON, mage.cards.d.DregscapeSliver.class)); + cards.add(new SetCardInfo("Echo of Eons", 46, Rarity.MYTHIC, mage.cards.e.EchoOfEons.class)); cards.add(new SetCardInfo("Eladamri's Call", 197, Rarity.RARE, mage.cards.e.EladamrisCall.class)); cards.add(new SetCardInfo("Elvish Fury", 162, Rarity.COMMON, mage.cards.e.ElvishFury.class)); cards.add(new SetCardInfo("Endling", 89, Rarity.RARE, mage.cards.e.Endling.class));