diff --git a/Mage.Sets/src/mage/cards/e/EatenAlive.java b/Mage.Sets/src/mage/cards/e/EatenAlive.java new file mode 100644 index 0000000000..27b3da87eb --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EatenAlive.java @@ -0,0 +1,42 @@ +package mage.cards.e; + +import mage.abilities.costs.OrCost; +import mage.abilities.costs.common.SacrificeTargetCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.ExileTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.common.TargetCreatureOrPlaneswalker; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EatenAlive extends CardImpl { + + public EatenAlive(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}"); + + // As an additional cost to cast this spell, sacrifice a creature or pay {3}{B}. + this.getSpellAbility().addCost(new OrCost( + new SacrificeTargetCost(new TargetControlledCreaturePermanent()), + new ManaCostsImpl<>("{3}{B}"), "sacrifice a creature or pay {3}{B}" + )); + + // Exile target creature or planeswalker. + this.getSpellAbility().addEffect(new ExileTargetEffect()); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker()); + } + + private EatenAlive(final EatenAlive card) { + super(card); + } + + @Override + public EatenAlive copy() { + return new EatenAlive(this); + } +} diff --git a/Mage.Sets/src/mage/cards/s/SparkHarvest.java b/Mage.Sets/src/mage/cards/s/SparkHarvest.java index 39c55762c6..9a3062e78e 100644 --- a/Mage.Sets/src/mage/cards/s/SparkHarvest.java +++ b/Mage.Sets/src/mage/cards/s/SparkHarvest.java @@ -23,7 +23,7 @@ public final class SparkHarvest extends CardImpl { // As an additional cost to cast this spell, sacrifice a creature or pay {3}{B}. this.getSpellAbility().addCost(new OrCost( new SacrificeTargetCost(new TargetControlledCreaturePermanent()), - new ManaCostsImpl("{3}{B}"), "sacrifice a creature or pay {3}{B}" + new ManaCostsImpl<>("{3}{B}"), "sacrifice a creature or pay {3}{B}" )); // Destroy target creature or planeswalker. diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index a3df84b3f3..3beb9dd06b 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -64,6 +64,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Diregraf Horde", 96, Rarity.COMMON, mage.cards.d.DiregrafHorde.class)); cards.add(new SetCardInfo("Diregraf Rebirth", 220, Rarity.UNCOMMON, mage.cards.d.DiregrafRebirth.class)); cards.add(new SetCardInfo("Dissipate", 49, Rarity.UNCOMMON, mage.cards.d.Dissipate.class)); + cards.add(new SetCardInfo("Eaten Alive", 99, Rarity.COMMON, mage.cards.e.EatenAlive.class)); cards.add(new SetCardInfo("Embodiment of Flame", 141, Rarity.UNCOMMON, mage.cards.e.EmbodimentOfFlame.class)); cards.add(new SetCardInfo("Faithful Mending", 221, Rarity.UNCOMMON, mage.cards.f.FaithfulMending.class)); cards.add(new SetCardInfo("Falkenrath Perforator", 136, Rarity.COMMON, mage.cards.f.FalkenrathPerforator.class));