From 49b4c1ccd863230e7852b404fe2ecb9745b675bf Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sun, 5 Nov 2023 16:31:56 -0500 Subject: [PATCH] [LCC] Implement Elenda's Hierophant --- .../src/mage/cards/e/ElendasHierophant.java | 53 +++++++++++++++++++ .../sets/LostCavernsOfIxalanCommander.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ElendasHierophant.java diff --git a/Mage.Sets/src/mage/cards/e/ElendasHierophant.java b/Mage.Sets/src/mage/cards/e/ElendasHierophant.java new file mode 100644 index 00000000000..b95c2d7b9a6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ElendasHierophant.java @@ -0,0 +1,53 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.common.GainLifeControllerTriggeredAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.game.permanent.token.IxalanVampireToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ElendasHierophant extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(); + + public ElendasHierophant(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}"); + + this.subtype.add(SubType.VAMPIRE); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you gain life, put a +1/+1 counter on Elenda's Hierophant. + this.addAbility(new GainLifeControllerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()))); + + // When Elenda's Hierophant dies, create X 1/1 white Vampire creature tokens with lifelink, where X is its power. + this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new IxalanVampireToken(), xValue))); + } + + private ElendasHierophant(final ElendasHierophant card) { + super(card); + } + + @Override + public ElendasHierophant copy() { + return new ElendasHierophant(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java b/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java index 906a2f4f068..05d0a27b167 100644 --- a/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java +++ b/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java @@ -98,6 +98,7 @@ public final class LostCavernsOfIxalanCommander extends ExpansionSet { cards.add(new SetCardInfo("Drover of the Mighty", 239, Rarity.UNCOMMON, mage.cards.d.DroverOfTheMighty.class)); cards.add(new SetCardInfo("Dusk Legion Sergeant", 80, Rarity.RARE, mage.cards.d.DuskLegionSergeant.class)); cards.add(new SetCardInfo("Dusk Legion Zealot", 194, Rarity.COMMON, mage.cards.d.DuskLegionZealot.class)); + cards.add(new SetCardInfo("Elenda's Hierophant", 71, Rarity.RARE, mage.cards.e.ElendasHierophant.class)); cards.add(new SetCardInfo("Elenda, the Dusk Rose", 268, Rarity.MYTHIC, mage.cards.e.ElendaTheDuskRose.class)); cards.add(new SetCardInfo("Emperor Mihail II", 155, Rarity.RARE, mage.cards.e.EmperorMihailII.class)); cards.add(new SetCardInfo("Etali, Primal Storm", 224, Rarity.RARE, mage.cards.e.EtaliPrimalStorm.class));