[CMR] Implemented Necrotic Hex

This commit is contained in:
Evan Kranzler 2020-11-02 09:03:13 -05:00
parent df32ab751f
commit 0861445c34
3 changed files with 49 additions and 13 deletions

View file

@ -1,31 +1,26 @@
package mage.cards.b;
import java.util.UUID;
import mage.abilities.effects.common.SacrificeAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
*
* @author North
*/
public final class BarterInBlood extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("creature");
static {
filter.add(CardType.CREATURE.getPredicate());
}
public BarterInBlood(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{B}{B}");
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{B}");
// Each player sacrifices two creatures.
this.getSpellAbility().addEffect(new SacrificeAllEffect(2, filter));
this.getSpellAbility().addEffect(new SacrificeAllEffect(
2, StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT
));
}
public BarterInBlood(final BarterInBlood card) {
@ -36,4 +31,4 @@ public final class BarterInBlood extends CardImpl {
public BarterInBlood copy() {
return new BarterInBlood(this);
}
}
}

View file

@ -0,0 +1,40 @@
package mage.cards.n;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.SacrificeAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.game.permanent.token.ZombieToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class NecroticHex extends CardImpl {
public NecroticHex(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{6}{B}");
// Each player sacrifices six creatures.
this.getSpellAbility().addEffect(new SacrificeAllEffect(
2, StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT
));
// You create six tapped 2/2 black creature tokens.
this.getSpellAbility().addEffect(
new CreateTokenEffect(new ZombieToken(), 6).concatBy("<br>You")
);
}
private NecroticHex(final NecroticHex card) {
super(card);
}
@Override
public NecroticHex copy() {
return new NecroticHex(this);
}
}

View file

@ -140,6 +140,7 @@ public final class CommanderLegends extends ExpansionSet {
cards.add(new SetCardInfo("Myriad Landscape", 487, Rarity.UNCOMMON, mage.cards.m.MyriadLandscape.class));
cards.add(new SetCardInfo("Najeela, the Blade-Blossom", 514, Rarity.MYTHIC, mage.cards.n.NajeelaTheBladeBlossom.class));
cards.add(new SetCardInfo("Natural Reclamation", 245, Rarity.COMMON, mage.cards.n.NaturalReclamation.class));
cards.add(new SetCardInfo("Necrotic Hex", 137, Rarity.RARE, mage.cards.n.NecroticHex.class));
cards.add(new SetCardInfo("Nekusar, the Mindrazer", 529, Rarity.MYTHIC, mage.cards.n.NekusarTheMindrazer.class));
cards.add(new SetCardInfo("Ninth Bridge Patrol", 33, Rarity.COMMON, mage.cards.n.NinthBridgePatrol.class));
cards.add(new SetCardInfo("Noxious Dragon", 139, Rarity.UNCOMMON, mage.cards.n.NoxiousDragon.class));