[VOW] Implemented Infestation Expert / Infested Werewolf

This commit is contained in:
Evan Kranzler 2021-11-04 09:03:50 -04:00
parent 27ef5629ff
commit 177cb0c8e2
3 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.i;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.DayboundAbility;
import mage.abilities.keyword.TransformAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.InsectToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class InfestationExpert extends CardImpl {
public InfestationExpert(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.WEREWOLF);
this.power = new MageInt(3);
this.toughness = new MageInt(4);
this.secondSideCardClazz = mage.cards.i.InfestedWerewolf.class;
// Whenever Infestation Expert enters the battlefield or attacks, create a 1/1 green Insect creature token.
this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(
new CreateTokenEffect(new InsectToken())
));
// Daybound
this.addAbility(new TransformAbility());
this.addAbility(new DayboundAbility());
}
private InfestationExpert(final InfestationExpert card) {
super(card);
}
@Override
public InfestationExpert copy() {
return new InfestationExpert(this);
}
}

View file

@ -0,0 +1,46 @@
package mage.cards.i;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.NightboundAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.InsectToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class InfestedWerewolf extends CardImpl {
public InfestedWerewolf(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
this.subtype.add(SubType.WEREWOLF);
this.power = new MageInt(4);
this.toughness = new MageInt(5);
this.color.setGreen(true);
this.nightCard = true;
// Whenever Infested Werewolf enters the battlefield or attacks, create two 1/1 green Insect creature token.
this.addAbility(new EntersBattlefieldOrAttacksSourceTriggeredAbility(
new CreateTokenEffect(new InsectToken(), 2)
));
// Nightbound
this.addAbility(new NightboundAbility());
}
private InfestedWerewolf(final InfestedWerewolf card) {
super(card);
}
@Override
public InfestedWerewolf copy() {
return new InfestedWerewolf(this);
}
}

View file

@ -87,6 +87,8 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Hero's Downfall", 120, Rarity.UNCOMMON, mage.cards.h.HerosDownfall.class));
cards.add(new SetCardInfo("Honeymoon Hearse", 160, Rarity.UNCOMMON, mage.cards.h.HoneymoonHearse.class));
cards.add(new SetCardInfo("Honored Heirloom", 257, Rarity.COMMON, mage.cards.h.HonoredHeirloom.class));
cards.add(new SetCardInfo("Infestation Expert", 206, Rarity.UNCOMMON, mage.cards.i.InfestationExpert.class));
cards.add(new SetCardInfo("Infested Werewolf", 206, Rarity.UNCOMMON, mage.cards.i.InfestedWerewolf.class));
cards.add(new SetCardInfo("Inspired Idea", 64, Rarity.RARE, mage.cards.i.InspiredIdea.class));
cards.add(new SetCardInfo("Investigator's Journal", 258, Rarity.RARE, mage.cards.i.InvestigatorsJournal.class));
cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));