[VOW] Implemented Headless Rider

This commit is contained in:
Evan Kranzler 2021-11-02 19:30:26 -04:00
parent 6a3b768ca6
commit 65f02b1a84
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.h;
import mage.MageInt;
import mage.abilities.common.DiesThisOrAnotherCreatureTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.game.permanent.token.ZombieToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class HeadlessRider extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledPermanent(SubType.ZOMBIE, "nontoken Zombie you control");
static {
filter.add(TokenPredicate.FALSE);
}
public HeadlessRider(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
this.subtype.add(SubType.ZOMBIE);
this.power = new MageInt(3);
this.toughness = new MageInt(1);
// Wheenver Headless Rider or another nontoken Zombie you control dies, create a 2/2 black Zombie creature token.
this.addAbility(new DiesThisOrAnotherCreatureTriggeredAbility(
new CreateTokenEffect(new ZombieToken()), false, filter
));
}
private HeadlessRider(final HeadlessRider card) {
super(card);
}
@Override
public HeadlessRider copy() {
return new HeadlessRider(this);
}
}

View file

@ -71,6 +71,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Gryff Rider", 15, Rarity.COMMON, mage.cards.g.GryffRider.class));
cards.add(new SetCardInfo("Halana and Alena, Partners", 239, Rarity.RARE, mage.cards.h.HalanaAndAlenaPartners.class));
cards.add(new SetCardInfo("Hallowed Haunting", 17, Rarity.MYTHIC, mage.cards.h.HallowedHaunting.class));
cards.add(new SetCardInfo("Headless Rider", 118, Rarity.RARE, mage.cards.h.HeadlessRider.class));
cards.add(new SetCardInfo("Hero's Downfall", 120, Rarity.UNCOMMON, mage.cards.h.HerosDownfall.class));
cards.add(new SetCardInfo("Honored Heirloom", 257, Rarity.COMMON, mage.cards.h.HonoredHeirloom.class));
cards.add(new SetCardInfo("Inspired Idea", 64, Rarity.RARE, mage.cards.i.InspiredIdea.class));