From 120db86a8ea26ecc0be1708d7cb87d35a571d772 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 9 Jan 2021 10:42:41 -0500 Subject: [PATCH] [KHM] Implemented Seize the Spoils --- .../src/mage/cards/s/SeizeTheSpoils.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SeizeTheSpoils.java diff --git a/Mage.Sets/src/mage/cards/s/SeizeTheSpoils.java b/Mage.Sets/src/mage/cards/s/SeizeTheSpoils.java new file mode 100644 index 00000000000..dcd16a7b39e --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SeizeTheSpoils.java @@ -0,0 +1,37 @@ +package mage.cards.s; + +import mage.abilities.costs.common.DiscardCardCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SeizeTheSpoils extends CardImpl { + + public SeizeTheSpoils(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{R}"); + + // As an additional cost to cast this spell, discard a card. + this.getSpellAbility().addCost(new DiscardCardCost()); + + // Draw two cards and create a Treasure token. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2)); + this.getSpellAbility().addEffect(new CreateTokenEffect(new TreasureToken()).concatBy("and")); + } + + private SeizeTheSpoils(final SeizeTheSpoils card) { + super(card); + } + + @Override + public SeizeTheSpoils copy() { + return new SeizeTheSpoils(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index eef87f00ae0..fad56796c63 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -91,6 +91,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Sarulf, Realm Eater", 228, Rarity.RARE, mage.cards.s.SarulfRealmEater.class)); cards.add(new SetCardInfo("Saw It Coming", 76, Rarity.UNCOMMON, mage.cards.s.SawItComing.class)); cards.add(new SetCardInfo("Sculptor of Winter", 193, Rarity.COMMON, mage.cards.s.SculptorOfWinter.class)); + cards.add(new SetCardInfo("Seize the Spoils", 149, Rarity.COMMON, mage.cards.s.SeizeTheSpoils.class)); cards.add(new SetCardInfo("Showdown of the Skalds", 229, Rarity.RARE, mage.cards.s.ShowdownOfTheSkalds.class)); cards.add(new SetCardInfo("Snow-Covered Forest", 284, Rarity.COMMON, mage.cards.s.SnowCoveredForest.class)); cards.add(new SetCardInfo("Snow-Covered Island", 278, Rarity.COMMON, mage.cards.s.SnowCoveredIsland.class));