From 28fbb4c7ea6b7dcaffd8421c5540ab4973c95775 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 18 Jan 2021 19:54:51 -0500 Subject: [PATCH] [KHM] Implemented Weigh Down --- Mage.Sets/src/mage/cards/w/WeighDown.java | 40 +++++++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WeighDown.java diff --git a/Mage.Sets/src/mage/cards/w/WeighDown.java b/Mage.Sets/src/mage/cards/w/WeighDown.java new file mode 100644 index 0000000000..abefc66759 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WeighDown.java @@ -0,0 +1,40 @@ +package mage.cards.w; + +import mage.abilities.costs.common.ExileFromGraveCost; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInYourGraveyard; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class WeighDown extends CardImpl { + + public WeighDown(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}"); + + // As an additional cost to cast this spell, exile a creature card from your graveyard. + this.getSpellAbility().addCost(new ExileFromGraveCost( + new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD) + )); + + // Target creature gets -3/-3 until end of turn. + this.getSpellAbility().addEffect(new BoostTargetEffect(-3, -3)); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private WeighDown(final WeighDown card) { + super(card); + } + + @Override + public WeighDown copy() { + return new WeighDown(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index f48de1eced..78ee381d62 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -292,6 +292,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Waking the Trolls", 234, Rarity.RARE, mage.cards.w.WakingTheTrolls.class)); cards.add(new SetCardInfo("Warchanter Skald", 381, Rarity.UNCOMMON, mage.cards.w.WarchanterSkald.class)); cards.add(new SetCardInfo("Weathered Runestone", 247, Rarity.UNCOMMON, mage.cards.w.WeatheredRunestone.class)); + cards.add(new SetCardInfo("Weigh Down", 118, Rarity.COMMON, mage.cards.w.WeighDown.class)); cards.add(new SetCardInfo("Wings of the Cosmos", 39, Rarity.COMMON, mage.cards.w.WingsOfTheCosmos.class)); cards.add(new SetCardInfo("Withercrown", 119, Rarity.COMMON, mage.cards.w.Withercrown.class)); cards.add(new SetCardInfo("Woodland Chasm", 274, Rarity.COMMON, mage.cards.w.WoodlandChasm.class));