[VOW] Implemented Weary Prisoner / Wrathful Jailbreaker

This commit is contained in:
Evan Kranzler 2021-10-28 21:06:16 -04:00
parent 04e10cb6ff
commit 886dd866a2
3 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.w;
import mage.MageInt;
import mage.abilities.keyword.DayboundAbility;
import mage.abilities.keyword.DefenderAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class WearyPrisoner extends CardImpl {
public WearyPrisoner(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.WEREWOLF);
this.power = new MageInt(2);
this.toughness = new MageInt(6);
this.transformable = true;
this.secondSideCardClazz = mage.cards.w.WrathfulJailbreaker.class;
// Defender
this.addAbility(DefenderAbility.getInstance());
// Daybound
this.addAbility(new DayboundAbility());
}
private WearyPrisoner(final WearyPrisoner card) {
super(card);
}
@Override
public WearyPrisoner copy() {
return new WearyPrisoner(this);
}
}

View file

@ -0,0 +1,43 @@
package mage.cards.w;
import mage.MageInt;
import mage.abilities.common.AttacksEachCombatStaticAbility;
import mage.abilities.keyword.NightboundAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class WrathfulJailbreaker extends CardImpl {
public WrathfulJailbreaker(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "");
this.subtype.add(SubType.WEREWOLF);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
this.color.setRed(true);
this.transformable = true;
this.nightCard = true;
// Wrathful Jailbreaker attacks each combat if able.
this.addAbility(new AttacksEachCombatStaticAbility());
// Nightbound
this.addAbility(new NightboundAbility());
}
private WrathfulJailbreaker(final WrathfulJailbreaker card) {
super(card);
}
@Override
public WrathfulJailbreaker copy() {
return new WrathfulJailbreaker(this);
}
}

View file

@ -45,6 +45,8 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Sundown Pass", 266, Rarity.RARE, mage.cards.s.SundownPass.class));
cards.add(new SetCardInfo("Swamp", 272, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Thalia, Guardian of Thraben", 38, Rarity.RARE, mage.cards.t.ThaliaGuardianOfThraben.class));
cards.add(new SetCardInfo("Weary Prisoner", 184, Rarity.COMMON, mage.cards.w.WearyPrisoner.class));
cards.add(new SetCardInfo("Wrathful Jailbreaker", 184, Rarity.COMMON, mage.cards.w.WrathfulJailbreaker.class));
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is fully implemented
}