From 8d0d2d8c614b70438934dfa3e5a057b56dfc56cc Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 21 Jan 2021 10:38:13 -0500 Subject: [PATCH] [KHM] Implemented Depart the Realm --- .../src/mage/cards/d/DepartTheRealm.java | 36 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DepartTheRealm.java diff --git a/Mage.Sets/src/mage/cards/d/DepartTheRealm.java b/Mage.Sets/src/mage/cards/d/DepartTheRealm.java new file mode 100644 index 0000000000..3d1ef8edd4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DepartTheRealm.java @@ -0,0 +1,36 @@ +package mage.cards.d; + +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.keyword.ForetellAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetNonlandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DepartTheRealm extends CardImpl { + + public DepartTheRealm(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Return target nonland permanent to its owners's hand. + this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()); + this.getSpellAbility().addTarget(new TargetNonlandPermanent()); + + // Foretell {U} + this.addAbility(new ForetellAbility(this, "{U}")); + } + + private DepartTheRealm(final DepartTheRealm card) { + super(card); + } + + @Override + public DepartTheRealm copy() { + return new DepartTheRealm(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index 171b19fe24..cb66266438 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -126,6 +126,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Deathknell Berserker", 83, Rarity.COMMON, mage.cards.d.DeathknellBerserker.class)); cards.add(new SetCardInfo("Demon Bolt", 129, Rarity.COMMON, mage.cards.d.DemonBolt.class)); cards.add(new SetCardInfo("Demonic Gifts", 84, Rarity.COMMON, mage.cards.d.DemonicGifts.class)); + cards.add(new SetCardInfo("Depart the Realm", 53, Rarity.COMMON, mage.cards.d.DepartTheRealm.class)); cards.add(new SetCardInfo("Disdainful Stroke", 54, Rarity.COMMON, mage.cards.d.DisdainfulStroke.class)); cards.add(new SetCardInfo("Divine Gambit", 8, Rarity.UNCOMMON, mage.cards.d.DivineGambit.class)); cards.add(new SetCardInfo("Dogged Pursuit", 85, Rarity.COMMON, mage.cards.d.DoggedPursuit.class));