Implemented Cordial Vampire

This commit is contained in:
Evan Kranzler 2019-05-30 21:47:23 -04:00
parent 8daa2d89b4
commit 1a33436cc2
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,45 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.common.DiesThisOrAnotherCreatureTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CordialVampire extends CardImpl {
private static final FilterPermanent filter
= new FilterControlledCreaturePermanent(SubType.VAMPIRE, "Vampire creature you control");
public CordialVampire(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{B}");
this.subtype.add(SubType.VAMPIRE);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// Whenever Cordial Vampire or another creature dies, put a +1/+1 counter on each vampire creature you control.
this.addAbility(new DiesThisOrAnotherCreatureTriggeredAbility(
new AddCountersAllEffect(CounterType.P1P1.createInstance(), filter), false
));
}
private CordialVampire(final CordialVampire card) {
super(card);
}
@Override
public CordialVampire copy() {
return new CordialVampire(this);
}
}

View file

@ -47,6 +47,7 @@ public final class ModernHorizons extends ExpansionSet {
cards.add(new SetCardInfo("Cloudshredder Sliver", 195, Rarity.RARE, mage.cards.c.CloudshredderSliver.class));
cards.add(new SetCardInfo("Collected Conjuring", 196, Rarity.RARE, mage.cards.c.CollectedConjuring.class));
cards.add(new SetCardInfo("Collector Ouphe", 158, Rarity.RARE, mage.cards.c.CollectorOuphe.class));
cards.add(new SetCardInfo("Cordial Vampire", 83, Rarity.RARE, mage.cards.c.CordialVampire.class));
cards.add(new SetCardInfo("Crashing Footfalls", 160, Rarity.RARE, mage.cards.c.CrashingFootfalls.class));
cards.add(new SetCardInfo("Crypt Rats", 84, Rarity.UNCOMMON, mage.cards.c.CryptRats.class));
cards.add(new SetCardInfo("Dead of Winter", 85, Rarity.RARE, mage.cards.d.DeadOfWinter.class));