From 404681d034fef4ede92ee9d5f14c6bf6eba8a0a0 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 9 Sep 2024 12:23:27 -0400 Subject: [PATCH] [DSK] Implement Break Down the Door --- .../src/mage/cards/b/BreakDownTheDoor.java | 43 +++++++++++++++++++ .../src/mage/sets/DuskmournHouseOfHorror.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BreakDownTheDoor.java diff --git a/Mage.Sets/src/mage/cards/b/BreakDownTheDoor.java b/Mage.Sets/src/mage/cards/b/BreakDownTheDoor.java new file mode 100644 index 00000000000..5f518c95229 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BreakDownTheDoor.java @@ -0,0 +1,43 @@ +package mage.cards.b; + +import mage.abilities.Mode; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.abilities.effects.keyword.ManifestDreadEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetArtifactPermanent; +import mage.target.common.TargetEnchantmentPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BreakDownTheDoor extends CardImpl { + + public BreakDownTheDoor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); + + // Choose one -- + // * Exile target artifact. + this.getSpellAbility().addEffect(new ExileTargetEffect()); + this.getSpellAbility().addTarget(new TargetArtifactPermanent()); + + // * Exile target enchantment. + this.getSpellAbility().addMode(new Mode(new ExileTargetEffect()).addTarget(new TargetEnchantmentPermanent())); + + // * Manifest dread. + this.getSpellAbility().addMode(new Mode(new ManifestDreadEffect())); + } + + private BreakDownTheDoor(final BreakDownTheDoor card) { + super(card); + } + + @Override + public BreakDownTheDoor copy() { + return new BreakDownTheDoor(this); + } +} +// Heeeeeere's Johnny! diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java index d4402d51842..d25575c1e7d 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java @@ -32,6 +32,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet { cards.add(new SetCardInfo("Bear Trap", 243, Rarity.COMMON, mage.cards.b.BearTrap.class)); cards.add(new SetCardInfo("Blazemire Verge", 256, Rarity.RARE, mage.cards.b.BlazemireVerge.class)); cards.add(new SetCardInfo("Bleeding Woods", 257, Rarity.COMMON, mage.cards.b.BleedingWoods.class)); + cards.add(new SetCardInfo("Break Down the Door", 170, Rarity.UNCOMMON, mage.cards.b.BreakDownTheDoor.class)); cards.add(new SetCardInfo("Cautious Survivor", 172, Rarity.COMMON, mage.cards.c.CautiousSurvivor.class)); cards.add(new SetCardInfo("Chainsaw", 128, Rarity.RARE, mage.cards.c.Chainsaw.class)); cards.add(new SetCardInfo("Clammy Prowler", 45, Rarity.COMMON, mage.cards.c.ClammyProwler.class));