From e4ae63f085273acf40c78bd1fc15508865aa79b7 Mon Sep 17 00:00:00 2001 From: Steven Knipe Date: Tue, 5 Nov 2024 02:01:08 -0800 Subject: [PATCH] [FDN] Wardens Of The Cycle --- .../src/mage/cards/w/WardensOfTheCycle.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/Foundations.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WardensOfTheCycle.java diff --git a/Mage.Sets/src/mage/cards/w/WardensOfTheCycle.java b/Mage.Sets/src/mage/cards/w/WardensOfTheCycle.java new file mode 100644 index 00000000000..851539d5726 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WardensOfTheCycle.java @@ -0,0 +1,53 @@ +package mage.cards.w; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.Mode; +import mage.abilities.condition.common.MorbidCondition; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.hint.common.MorbidHint; +import mage.abilities.triggers.BeginningOfEndStepTriggeredAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author notgreat + */ +public final class WardensOfTheCycle extends CardImpl { + + public WardensOfTheCycle(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{G}{G}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.WARLOCK); + this.power = new MageInt(3); + this.toughness = new MageInt(4); + + // Morbid -- At the beginning of your end step, if a creature died this turn, choose one -- + // * You gain 2 life. + Ability ability = new BeginningOfEndStepTriggeredAbility(new GainLifeEffect(2)) + .withInterveningIf(MorbidCondition.instance).setAbilityWord(AbilityWord.MORBID).addHint(MorbidHint.instance); + + // * You draw a card and you lose 1 life. + Mode mode = new Mode(new DrawCardSourceControllerEffect(1)); + mode.addEffect(new LoseLifeSourceControllerEffect(1).concatBy("and")); + ability.addMode(mode); + this.addAbility(ability); + } + + private WardensOfTheCycle(final WardensOfTheCycle card) { + super(card); + } + + @Override + public WardensOfTheCycle copy() { + return new WardensOfTheCycle(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Foundations.java b/Mage.Sets/src/mage/sets/Foundations.java index c03cd666422..7a25818692f 100644 --- a/Mage.Sets/src/mage/sets/Foundations.java +++ b/Mage.Sets/src/mage/sets/Foundations.java @@ -520,6 +520,7 @@ public final class Foundations extends ExpansionSet { cards.add(new SetCardInfo("Vizier of the Menagerie", 649, Rarity.MYTHIC, mage.cards.v.VizierOfTheMenagerie.class)); cards.add(new SetCardInfo("Volley Veteran", 550, Rarity.UNCOMMON, mage.cards.v.VolleyVeteran.class)); cards.add(new SetCardInfo("Voracious Greatshark", 600, Rarity.RARE, mage.cards.v.VoraciousGreatshark.class)); + cards.add(new SetCardInfo("Wardens of the Cycle", 125, Rarity.UNCOMMON, mage.cards.w.WardensOfTheCycle.class)); cards.add(new SetCardInfo("Wary Thespian", 235, Rarity.COMMON, mage.cards.w.WaryThespian.class)); cards.add(new SetCardInfo("Wildborn Preserver", 650, Rarity.RARE, mage.cards.w.WildbornPreserver.class)); cards.add(new SetCardInfo("Wildheart Invoker", 561, Rarity.COMMON, mage.cards.w.WildheartInvoker.class));