Implemented Necrotic Wound

This commit is contained in:
Evan Kranzler 2018-09-02 23:34:33 -04:00
parent 9b1d5e2a57
commit 915cc38e11
3 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.n;
import java.util.UUID;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
import mage.abilities.effects.common.ExileTargetIfDiesEffect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AbilityWord;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.StaticFilters;
import mage.target.common.TargetCreaturePermanent;
/**
*
* @author TheElk801
*/
public final class NecroticWound extends CardImpl {
public NecroticWound(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{B}");
// Undergrowth Target creature gets -X/-X until end of turn, where X is the number of creature cards in your graveyard. If that creature would die this turn, exile it instead.
DynamicValue xValue = new CardsInControllerGraveyardCount(
StaticFilters.FILTER_CARD_CREATURE, -1
);
this.getSpellAbility().addEffect(
new BoostTargetEffect(xValue, xValue, Duration.EndOfTurn, true)
.setText("Target creature gets -X/-X until end of turn, "
+ "where X is the number "
+ "of creature cards in your graveyard.")
);
this.getSpellAbility().addEffect(new ExileTargetIfDiesEffect());
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().setAbilityWord(AbilityWord.UNDERGROWTH);
}
public NecroticWound(final NecroticWound card) {
super(card);
}
@Override
public NecroticWound copy() {
return new NecroticWound(this);
}
}

View file

@ -26,6 +26,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Emmara, Soul of the Accord", 168, Rarity.RARE, mage.cards.e.EmmaraSoulOfTheAccord.class));
cards.add(new SetCardInfo("Impervious Greatwurm", 273, Rarity.MYTHIC, mage.cards.i.ImperviousGreatwurm.class));
cards.add(new SetCardInfo("Narcomoeba", 47, Rarity.RARE, mage.cards.n.Narcomoeba.class));
cards.add(new SetCardInfo("Necrotic Wound", 79, Rarity.UNCOMMON, mage.cards.n.NecroticWound.class));
cards.add(new SetCardInfo("Overgrown Tomb", 253, Rarity.RARE, mage.cards.o.OvergrownTomb.class));
cards.add(new SetCardInfo("Sacred Foundry", 254, Rarity.RARE, mage.cards.s.SacredFoundry.class));
cards.add(new SetCardInfo("Sinister Sabotage", 54, Rarity.UNCOMMON, mage.cards.s.SinisterSabotage.class));