From 47e34913c52670e12fd087e2cd7bd62a9ee178be Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 2 Jan 2020 12:19:26 -0500 Subject: [PATCH] Implemented Sweet Oblivion --- Mage.Sets/src/mage/cards/s/SweetOblivion.java | 36 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SweetOblivion.java diff --git a/Mage.Sets/src/mage/cards/s/SweetOblivion.java b/Mage.Sets/src/mage/cards/s/SweetOblivion.java new file mode 100644 index 0000000000..e2b7f67cd6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SweetOblivion.java @@ -0,0 +1,36 @@ +package mage.cards.s; + +import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveTargetEffect; +import mage.abilities.keyword.EscapeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.TargetPlayer; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SweetOblivion extends CardImpl { + + public SweetOblivion(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{U}"); + + // Target player puts the top four cards of their library into their graveyard. + this.getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveTargetEffect(4)); + this.getSpellAbility().addTarget(new TargetPlayer()); + + // Escape—{3}{U}, Exile four other cards from your graveyard. + this.addAbility(new EscapeAbility(this, "{3}{U}", 4)); + } + + private SweetOblivion(final SweetOblivion card) { + super(card); + } + + @Override + public SweetOblivion copy() { + return new SweetOblivion(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index a721727fe0..c57cbe57ac 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -85,6 +85,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Sphinx Mindbreaker", 290, Rarity.RARE, mage.cards.s.SphinxMindbreaker.class)); cards.add(new SetCardInfo("Staggering Insight", 228, Rarity.UNCOMMON, mage.cards.s.StaggeringInsight.class)); cards.add(new SetCardInfo("Swamp", 252, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Sweet Oblivion", 70, Rarity.UNCOMMON, mage.cards.s.SweetOblivion.class)); cards.add(new SetCardInfo("Temple of Abandon", 244, Rarity.RARE, mage.cards.t.TempleOfAbandon.class)); cards.add(new SetCardInfo("Temple of Deceit", 245, Rarity.RARE, mage.cards.t.TempleOfDeceit.class)); cards.add(new SetCardInfo("Temple of Enlightenment", 246, Rarity.RARE, mage.cards.t.TempleOfEnlightenment.class));