From e45bd4c74e8e8189d0a4d9c9d26b27fced004d1d Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 30 Mar 2023 19:12:35 -0400 Subject: [PATCH] [MOM] Implement Elspeth's Smite --- Mage.Sets/src/mage/cards/e/ElspethsSmite.java | 34 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 35 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ElspethsSmite.java diff --git a/Mage.Sets/src/mage/cards/e/ElspethsSmite.java b/Mage.Sets/src/mage/cards/e/ElspethsSmite.java new file mode 100644 index 00000000000..3b7bc309538 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ElspethsSmite.java @@ -0,0 +1,34 @@ +package mage.cards.e; + +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.ExileTargetIfDiesEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetAttackingOrBlockingCreature; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ElspethsSmite extends CardImpl { + + public ElspethsSmite(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}"); + + // Elspeth's Smite deals 3 damage to target attacking or blocking creature. If that creature would die this turn, exile it instead. + this.getSpellAbility().addEffect(new DamageTargetEffect(3)); + this.getSpellAbility().addTarget(new TargetAttackingOrBlockingCreature()); + this.getSpellAbility().addEffect(new ExileTargetIfDiesEffect()); + } + + private ElspethsSmite(final ElspethsSmite card) { + super(card); + } + + @Override + public ElspethsSmite copy() { + return new ElspethsSmite(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index bedc6a2d0b5..d907cc70902 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -25,6 +25,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Blossoming Sands", 268, Rarity.COMMON, mage.cards.b.BlossomingSands.class)); cards.add(new SetCardInfo("Chandra, Hope's Beacon", 134, Rarity.MYTHIC, mage.cards.c.ChandraHopesBeacon.class)); cards.add(new SetCardInfo("Dismal Backwater", 269, Rarity.COMMON, mage.cards.d.DismalBackwater.class)); + cards.add(new SetCardInfo("Elspeth's Smite", 13, Rarity.UNCOMMON, mage.cards.e.ElspethsSmite.class)); cards.add(new SetCardInfo("Faerie Mastermind", 58, Rarity.RARE, mage.cards.f.FaerieMastermind.class)); cards.add(new SetCardInfo("Fairgrounds Trumpeter", 335, Rarity.COMMON, mage.cards.f.FairgroundsTrumpeter.class)); cards.add(new SetCardInfo("Forest", 281, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));