From 8aaad35df7ac2104599248bc237fba9502fafb54 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 18:49:59 -0500 Subject: [PATCH] Implemented Sleep of the Dead --- .../src/mage/cards/s/SleepOfTheDead.java | 38 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SleepOfTheDead.java diff --git a/Mage.Sets/src/mage/cards/s/SleepOfTheDead.java b/Mage.Sets/src/mage/cards/s/SleepOfTheDead.java new file mode 100644 index 0000000000..0d443a2e44 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SleepOfTheDead.java @@ -0,0 +1,38 @@ +package mage.cards.s; + +import mage.abilities.effects.common.DontUntapInControllersNextUntapStepTargetEffect; +import mage.abilities.effects.common.TapTargetEffect; +import mage.abilities.keyword.EscapeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SleepOfTheDead extends CardImpl { + + public SleepOfTheDead(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{U}"); + + // Tap target creature. It doesn't untap during its controller's next untap step. + this.getSpellAbility().addEffect(new TapTargetEffect()); + this.getSpellAbility().addEffect(new DontUntapInControllersNextUntapStepTargetEffect()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + + // Escape—{2}{U}, Exile three other cards from your graveyard. + this.addAbility(new EscapeAbility(this, "{2}{U}", 3)); + } + + private SleepOfTheDead(final SleepOfTheDead card) { + super(card); + } + + @Override + public SleepOfTheDead copy() { + return new SleepOfTheDead(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 4b52c4afcd..f9b1142076 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -181,6 +181,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Shoal Kraken", 65, Rarity.UNCOMMON, mage.cards.s.ShoalKraken.class)); cards.add(new SetCardInfo("Siona, Captain of the Pyleas", 226, Rarity.UNCOMMON, mage.cards.s.SionaCaptainOfThePyleas.class)); cards.add(new SetCardInfo("Skophos Maze-Warden", 153, Rarity.UNCOMMON, mage.cards.s.SkophosMazeWarden.class)); + cards.add(new SetCardInfo("Sleep of the Dead", 66, Rarity.COMMON, mage.cards.s.SleepOfTheDead.class)); cards.add(new SetCardInfo("Soul-Guide Lantern", 237, Rarity.UNCOMMON, mage.cards.s.SoulGuideLantern.class)); 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));