diff --git a/Mage.Sets/src/mage/cards/d/DenyTheWitch.java b/Mage.Sets/src/mage/cards/d/DenyTheWitch.java new file mode 100644 index 00000000000..d59d08818f5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DenyTheWitch.java @@ -0,0 +1,37 @@ +package mage.cards.d; + +import mage.abilities.dynamicvalue.common.CreaturesYouControlCount; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.LoseLifeTargetControllerEffect; +import mage.abilities.hint.common.CreaturesYouControlHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.TargetStackObject; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DenyTheWitch extends CardImpl { + + public DenyTheWitch(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}{U}{B}"); + + // Counter target spell, activated ability, or triggered ability. Its controller loses life equal to the number of creatures you control. + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addTarget(new TargetStackObject()); + this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(CreaturesYouControlCount.instance)); + this.getSpellAbility().addHint(CreaturesYouControlHint.instance); + } + + private DenyTheWitch(final DenyTheWitch card) { + super(card); + } + + @Override + public DenyTheWitch copy() { + return new DenyTheWitch(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index b62ef962f8f..7be5e92a089 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -88,6 +88,7 @@ public final class Warhammer40000 extends ExpansionSet { cards.add(new SetCardInfo("Defenders of Humanity", 11, Rarity.RARE, mage.cards.d.DefendersOfHumanity.class)); cards.add(new SetCardInfo("Defile", 199, Rarity.UNCOMMON, mage.cards.d.Defile.class)); cards.add(new SetCardInfo("Deny Reality", 223, Rarity.COMMON, mage.cards.d.DenyReality.class)); + cards.add(new SetCardInfo("Deny the Witch", 116, Rarity.UNCOMMON, mage.cards.d.DenyTheWitch.class)); cards.add(new SetCardInfo("Deploy to the Front", 184, Rarity.RARE, mage.cards.d.DeployToTheFront.class)); cards.add(new SetCardInfo("Desert of the Glorified", 275, Rarity.COMMON, mage.cards.d.DesertOfTheGlorified.class)); cards.add(new SetCardInfo("Dismal Backwater", 276, Rarity.COMMON, mage.cards.d.DismalBackwater.class));