From 21840d7a9c0b2a506ecf69bb5ef05530125d858a Mon Sep 17 00:00:00 2001 From: Raphael-Schulz <72562197+Raphael-Schulz@users.noreply.github.com> Date: Mon, 5 Jul 2021 22:08:16 +0200 Subject: [PATCH] [AFR] Implemented Demogorgon's Clutches (#7977) --- .../src/mage/cards/d/DemogorgonsClutches.java | 46 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DemogorgonsClutches.java diff --git a/Mage.Sets/src/mage/cards/d/DemogorgonsClutches.java b/Mage.Sets/src/mage/cards/d/DemogorgonsClutches.java new file mode 100644 index 00000000000..a0f0ce9c57f --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DemogorgonsClutches.java @@ -0,0 +1,46 @@ + +package mage.cards.d; + +import java.util.UUID; + +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.LoseLifeTargetEffect; +import mage.abilities.effects.common.MillCardsTargetEffect; +import mage.abilities.effects.common.discard.DiscardTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetOpponent; + +/** + * + * @author Raphael-Schulz + */ +public final class DemogorgonsClutches extends CardImpl { + + public DemogorgonsClutches(UUID ownerId, CardSetInfo setInfo) { + super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}"); + + // Target opponent discards two cards, mills two cards, and loses 2 life. + this.getSpellAbility().addEffect(new DiscardTargetEffect(2)); + + Effect effect = new MillCardsTargetEffect(2); + effect.setText(", mills two cards"); + this.getSpellAbility().addEffect(effect); + + effect = new LoseLifeTargetEffect(2); + effect.setText(", and loses 2 life"); + this.getSpellAbility().addEffect(effect); + + this.getSpellAbility().addTarget(new TargetOpponent()); + } + + private DemogorgonsClutches(final DemogorgonsClutches card) { + super(card); + } + + @Override + public DemogorgonsClutches copy() { + return new DemogorgonsClutches(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 7b1be8f4dca..a4e509148d1 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -47,6 +47,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Contact Other Plane", 52, Rarity.COMMON, mage.cards.c.ContactOtherPlane.class)); cards.add(new SetCardInfo("Dawnbringer Cleric", 9, Rarity.COMMON, mage.cards.d.DawnbringerCleric.class)); cards.add(new SetCardInfo("Delver's Torch", 10, Rarity.COMMON, mage.cards.d.DelversTorch.class)); + cards.add(new SetCardInfo("Demogorgon's Clutches", 96, Rarity.UNCOMMON, mage.cards.d.DemogorgonsClutches.class)); cards.add(new SetCardInfo("Den of the Bugbear", 254, Rarity.RARE, mage.cards.d.DenOfTheBugbear.class)); cards.add(new SetCardInfo("Devoted Paladin", 11, Rarity.COMMON, mage.cards.d.DevotedPaladin.class)); cards.add(new SetCardInfo("Dire Wolf Prowler", 179, Rarity.COMMON, mage.cards.d.DireWolfProwler.class));