From 91ee58c78acd91721a7516c82c6d86ff20a27c75 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 10 Jul 2025 12:06:38 -0400 Subject: [PATCH] [EOE] Implement Alpharael, Stonechosen --- .../mage/cards/a/AlpharaelStonechosen.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/EdgeOfEternities.java | 2 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AlpharaelStonechosen.java diff --git a/Mage.Sets/src/mage/cards/a/AlpharaelStonechosen.java b/Mage.Sets/src/mage/cards/a/AlpharaelStonechosen.java new file mode 100644 index 00000000000..3e2a1437f80 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AlpharaelStonechosen.java @@ -0,0 +1,49 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.condition.common.VoidCondition; +import mage.abilities.costs.common.DiscardCardCost; +import mage.abilities.effects.common.LoseHalfLifeTargetEffect; +import mage.abilities.keyword.WardAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.watchers.common.VoidWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AlpharaelStonechosen extends CardImpl { + + public AlpharaelStonechosen(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{B}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Ward--Discard a card at random. + this.addAbility(new WardAbility(new DiscardCardCost(true))); + + // Void -- Whenever Alpharael attacks, if a nonland permanent left the battlefield this turn or a spell was warped this turn, defending player loses half their life, rounded up. + this.addAbility(new AttacksTriggeredAbility( + new LoseHalfLifeTargetEffect() + .setText("defending player loses half their life, rounded up"), + false, null, SetTargetPointer.PLAYER + ).withInterveningIf(VoidCondition.instance).setAbilityWord(AbilityWord.VOID).addHint(VoidCondition.getHint()), new VoidWatcher()); + } + + private AlpharaelStonechosen(final AlpharaelStonechosen card) { + super(card); + } + + @Override + public AlpharaelStonechosen copy() { + return new AlpharaelStonechosen(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index a9e8f67b854..d3a655e2628 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -28,6 +28,8 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("Adagia, Windswept Bastion", 277, Rarity.MYTHIC, mage.cards.a.AdagiaWindsweptBastion.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Adagia, Windswept Bastion", 372, Rarity.MYTHIC, mage.cards.a.AdagiaWindsweptBastion.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Alpharael, Dreaming Acolyte", 212, Rarity.UNCOMMON, mage.cards.a.AlpharaelDreamingAcolyte.class)); + cards.add(new SetCardInfo("Alpharael, Stonechosen", 292, Rarity.MYTHIC, mage.cards.a.AlpharaelStonechosen.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Alpharael, Stonechosen", 87, Rarity.MYTHIC, mage.cards.a.AlpharaelStonechosen.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Annul", 394, Rarity.UNCOMMON, mage.cards.a.Annul.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Annul", 46, Rarity.UNCOMMON, mage.cards.a.Annul.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Anticausal Vestige", 1, Rarity.RARE, mage.cards.a.AnticausalVestige.class, NON_FULL_USE_VARIOUS));