From cc5b299efe3101d7e1b9490a80101b3d16b421b1 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 11 Jan 2021 20:41:02 -0500 Subject: [PATCH] [KHM] Implemented Tergrid's Shadow --- .../src/mage/cards/t/TergridsShadow.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/t/TergridsShadow.java diff --git a/Mage.Sets/src/mage/cards/t/TergridsShadow.java b/Mage.Sets/src/mage/cards/t/TergridsShadow.java new file mode 100644 index 0000000000..01f6ee495d --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TergridsShadow.java @@ -0,0 +1,37 @@ +package mage.cards.t; + +import mage.abilities.effects.common.SacrificeAllEffect; +import mage.abilities.keyword.ForetellAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TergridsShadow extends CardImpl { + + public TergridsShadow(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B}{B}"); + + // Each player sacrifices two creatures. + this.getSpellAbility().addEffect(new SacrificeAllEffect( + 2, StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT + )); + + // Foretell {2}{B}{B} + this.addAbility(new ForetellAbility(this, "{2}{B}{B}")); + } + + private TergridsShadow(final TergridsShadow card) { + super(card); + } + + @Override + public TergridsShadow copy() { + return new TergridsShadow(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index aae2b413ba..1337fa1734 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -133,6 +133,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Sulfurous Mire", 270, Rarity.COMMON, mage.cards.s.SulfurousMire.class)); cards.add(new SetCardInfo("Surtland Elementalist", 375, Rarity.RARE, mage.cards.s.SurtlandElementalist.class)); cards.add(new SetCardInfo("Surtland Flinger", 377, Rarity.RARE, mage.cards.s.SurtlandFlinger.class)); + cards.add(new SetCardInfo("Tergrid's Shadow", 113, Rarity.UNCOMMON, mage.cards.t.TergridsShadow.class)); cards.add(new SetCardInfo("The Trickster-God's Heist", 232, Rarity.UNCOMMON, mage.cards.t.TheTricksterGodsHeist.class)); cards.add(new SetCardInfo("The World Tree", 275, Rarity.RARE, mage.cards.t.TheWorldTree.class)); cards.add(new SetCardInfo("Thornmantle Striker", 387, Rarity.UNCOMMON, mage.cards.t.ThornmantleStriker.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index bf8795d973..4b92d90c5e 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -40055,7 +40055,7 @@ Rise of the Dread Marn|Kaldheim|107|R|{2}{B}|Instant|||Create X 2/2 black Zombie Skemfar Shadowsage|Kaldheim|110|U|{3}{B}|Creature - Elf Cleric|2|5|When Skemfar Shadowsage enters the battlefield, choose one —$• Each opponent loses X life, where X is the greatest number of creatures you control that share a creature type.$• You gain X life, where X is the greatest number of creatures you control that share a creature type.| Tergrid's Lantern|Kaldheim|112|R|{3}{B}|Legendary Artifact|||{T}: Target player loses 3 life unless they sacrifice a nonland permanent or discard a card.${3}{B}: Untap Tergrid's Lantern.| Tergrid, God of Fright|Kaldheim|112|R|{3}{B}{B}|Legendary Creature - God|4|5|Menace$Whenever an opponent sacrifices a nontoken permanent or discards a permanent card, you may put that card onto the battlefield under your control from their graveyard.| -Tegrid's Shadow|Kaldheim|113|U|{3}{B}{B}|Instant|||Each player sacrifices two creatures.$Foretell {2}{B}{B}| +Tergrid's Shadow|Kaldheim|113|U|{3}{B}{B}|Instant|||Each player sacrifices two creatures.$Foretell {2}{B}{B}| Tibalt, Cosmic Impostor|Kaldheim|114|M|{5}{B}{R}|Legendary Planeswalker - Tibalt|5|As Tibalt enters the battlefield, you get an emblem with "You may play cards exiled with Tibalt, Cosmic Impostor, and you may spend mana as though it were mana of any color to cast those spells."$+2: Exile the top card of each player's library.$−3: Exile target artifact or creature.$−8: Exile all cards from all graveyards. Add {R}{R}{R}.| Valki, God of Lies|Kaldheim|114|M|{1}{B}|Legendary Creature - God|2|1|When Valki enters the battlefield, each opponent reveals their hand. For each opponent, exile a creature card they revealed this way until Valki leaves the battlefield.${X}: Choose a creature card exiled with Valki with converted mana cost X. Valki becomes a copy of that card.| Varragoth, Bloodsky Sire|Kaldheim|115|R|{2}{B}|Legendary Creature - Demon Rogue|2|3|Deathtouch$Boast — {1}{B}: Target player search their library for a card, then shuffles their library and puts that card on top of it.|