mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[MID] Implemented Eaten Alive
This commit is contained in:
parent
61957b3188
commit
5cfc86f799
3 changed files with 44 additions and 1 deletions
42
Mage.Sets/src/mage/cards/e/EatenAlive.java
Normal file
42
Mage.Sets/src/mage/cards/e/EatenAlive.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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.
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue