From 8d85bce907268eb5a93d958aa3ffe55f1ac9877e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 30 May 2019 16:28:55 -0400 Subject: [PATCH] Implemented Ephemerate --- Mage.Sets/src/mage/cards/e/Ephemerate.java | 38 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/Ephemerate.java diff --git a/Mage.Sets/src/mage/cards/e/Ephemerate.java b/Mage.Sets/src/mage/cards/e/Ephemerate.java new file mode 100644 index 0000000000..1468c8fc2b --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/Ephemerate.java @@ -0,0 +1,38 @@ +package mage.cards.e; + +import mage.abilities.effects.common.ExileTargetForSourceEffect; +import mage.abilities.effects.common.ReturnToBattlefieldUnderOwnerControlTargetEffect; +import mage.abilities.keyword.ReboundAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Ephemerate extends CardImpl { + + public Ephemerate(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}"); + + // Exile target creature you control, then return it to the battlefield under its owner's control. + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addEffect(new ExileTargetForSourceEffect()); + this.getSpellAbility().addEffect(new ReturnToBattlefieldUnderOwnerControlTargetEffect(true)); + + // Rebound + this.addAbility(new ReboundAbility()); + } + + private Ephemerate(final Ephemerate card) { + super(card); + } + + @Override + public Ephemerate copy() { + return new Ephemerate(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index b193748a95..ba8087fd6d 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -60,6 +60,7 @@ public final class ModernHorizons extends ExpansionSet { 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)); cards.add(new SetCardInfo("Enduring Sliver", 6, Rarity.COMMON, mage.cards.e.EnduringSliver.class)); + cards.add(new SetCardInfo("Ephemerate", 7, Rarity.COMMON, mage.cards.e.Ephemerate.class)); cards.add(new SetCardInfo("Etchings of the Chosen", 198, Rarity.UNCOMMON, mage.cards.e.EtchingsOfTheChosen.class)); cards.add(new SetCardInfo("Everdream", 47, Rarity.UNCOMMON, mage.cards.e.Everdream.class)); cards.add(new SetCardInfo("Exclude", 48, Rarity.UNCOMMON, mage.cards.e.Exclude.class));