From b296256f4fb10e769db7abc1d589d734f46e690b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 6 Apr 2021 08:30:11 -0400 Subject: [PATCH] [STX] Implemented Daemogoth Woe-Eater --- .../src/mage/cards/d/DaemogothWoeEater.java | 54 +++++++++++++++++++ .../mage/sets/StrixhavenSchoolOfMages.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DaemogothWoeEater.java diff --git a/Mage.Sets/src/mage/cards/d/DaemogothWoeEater.java b/Mage.Sets/src/mage/cards/d/DaemogothWoeEater.java new file mode 100644 index 00000000000..dc88639deed --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DaemogothWoeEater.java @@ -0,0 +1,54 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; +import mage.abilities.common.SacrificeSourceTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.SacrificeControllerEffect; +import mage.abilities.effects.common.discard.DiscardEachPlayerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DaemogothWoeEater extends CardImpl { + + public DaemogothWoeEater(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{B/G}{G}"); + + this.subtype.add(SubType.DEMON); + this.power = new MageInt(7); + this.toughness = new MageInt(6); + + // At the beginning of your upkeep, sacrifice a creature. + this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect( + StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT, 1, "" + ), TargetController.YOU, false)); + + // When you sacrifice Daemogoth Woe-Eater, each opponent discards a card, you draw a card, and you gain 2 life. + Ability ability = new SacrificeSourceTriggeredAbility( + new DiscardEachPlayerEffect(TargetController.OPPONENT), false + ); + ability.addEffect(new DrawCardSourceControllerEffect(1).concatBy(", you")); + ability.addEffect(new GainLifeEffect(2).concatBy(", and")); + this.addAbility(ability); + } + + private DaemogothWoeEater(final DaemogothWoeEater card) { + super(card); + } + + @Override + public DaemogothWoeEater copy() { + return new DaemogothWoeEater(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index a9f333164a4..ba04bb2c11a 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -72,6 +72,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Culmination of Studies", 173, Rarity.RARE, mage.cards.c.CulminationOfStudies.class)); cards.add(new SetCardInfo("Curate", 40, Rarity.COMMON, mage.cards.c.Curate.class)); cards.add(new SetCardInfo("Daemogoth Titan", 174, Rarity.RARE, mage.cards.d.DaemogothTitan.class)); + cards.add(new SetCardInfo("Daemogoth Woe-Eater", 175, Rarity.UNCOMMON, mage.cards.d.DaemogothWoeEater.class)); cards.add(new SetCardInfo("Decisive Denial", 177, Rarity.UNCOMMON, mage.cards.d.DecisiveDenial.class)); cards.add(new SetCardInfo("Defend the Campus", 12, Rarity.COMMON, mage.cards.d.DefendTheCampus.class)); cards.add(new SetCardInfo("Divide by Zero", 41, Rarity.UNCOMMON, mage.cards.d.DivideByZero.class));