some more changes to modal DFC implementation

This commit is contained in:
Evan Kranzler 2020-09-03 14:06:11 -04:00
parent f188cb948d
commit 42e38a4e8a
12 changed files with 34 additions and 33 deletions

View file

@ -1,12 +1,12 @@
package mage.cards.b;
import java.util.UUID;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class BoulderloftPathway extends CardImpl {
public BoulderloftPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {W}.

View file

@ -1,13 +1,12 @@
package mage.cards.b;
import java.util.UUID;
import mage.abilities.keyword.TransformAbility;
import mage.abilities.mana.GreenManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -16,11 +15,11 @@ public final class BranchloftPathway extends CardImpl {
public BranchloftPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.secondSideCardClazz = mage.cards.b.BoulderloftPathway.class;
// {T}: Add {G}.
this.addAbility(new GreenManaAbility());
this.addAbility(new TransformAbility());
}
private BranchloftPathway(final BranchloftPathway card) {

View file

@ -1,14 +1,12 @@
package mage.cards.b;
import java.util.UUID;
import mage.abilities.keyword.TransformAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.cards.g.GrimclimbPathway;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -17,11 +15,11 @@ public final class BrightclimbPathway extends CardImpl {
public BrightclimbPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.secondSideCardClazz = mage.cards.g.GrimclimbPathway.class;
// {T}: Add {W}.
this.addAbility(new WhiteManaAbility());
this.addAbility(new TransformAbility());
}
private BrightclimbPathway(final BrightclimbPathway card) {

View file

@ -1,13 +1,12 @@
package mage.cards.c;
import java.util.UUID;
import mage.abilities.keyword.TransformAbility;
import mage.abilities.mana.BlueManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -16,11 +15,11 @@ public final class ClearwaterPathway extends CardImpl {
public ClearwaterPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.secondSideCardClazz = mage.cards.m.MurkwaterPathway.class;
// {T}: Add {U}.
this.addAbility(new BlueManaAbility());
this.addAbility(new TransformAbility());
}
private ClearwaterPathway(final ClearwaterPathway card) {

View file

@ -1,12 +1,12 @@
package mage.cards.g;
import java.util.UUID;
import mage.abilities.mana.BlackManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class GrimclimbPathway extends CardImpl {
public GrimclimbPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {B}.

View file

@ -1,12 +1,12 @@
package mage.cards.l;
import java.util.UUID;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class LavaglidePathway extends CardImpl {
public LavaglidePathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {R}.

View file

@ -1,12 +1,12 @@
package mage.cards.m;
import java.util.UUID;
import mage.abilities.mana.BlackManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class MurkwaterPathway extends CardImpl {
public MurkwaterPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {B}.

View file

@ -1,13 +1,12 @@
package mage.cards.n;
import java.util.UUID;
import mage.abilities.keyword.TransformAbility;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -16,11 +15,11 @@ public final class NeedlevergePathway extends CardImpl {
public NeedlevergePathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.secondSideCardClazz = mage.cards.p.PillarvergePathway.class;
// {T}: Add {R}.
this.addAbility(new RedManaAbility());
this.addAbility(new TransformAbility());
}
private NeedlevergePathway(final NeedlevergePathway card) {

View file

@ -1,12 +1,12 @@
package mage.cards.p;
import java.util.UUID;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class PillarvergePathway extends CardImpl {
public PillarvergePathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {W}.

View file

@ -1,13 +1,12 @@
package mage.cards.r;
import java.util.UUID;
import mage.abilities.keyword.TransformAbility;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -16,11 +15,11 @@ public final class RiverglidePathway extends CardImpl {
public RiverglidePathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.secondSideCardClazz = mage.cards.l.LavaglidePathway.class;
// {T}: Add {U}.
this.addAbility(new RedManaAbility());
this.addAbility(new TransformAbility());
}
private RiverglidePathway(final RiverglidePathway card) {

View file

@ -1,12 +1,12 @@
package mage.cards.t;
import java.util.UUID;
import mage.abilities.mana.GreenManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -15,6 +15,7 @@ public final class TimbercrownPathway extends CardImpl {
public TimbercrownPathway(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
this.modalDFC = true;
this.nightCard = true;
// {T}: Add {G}.

View file

@ -59,6 +59,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
protected boolean usesVariousArt = false;
protected boolean splitCard;
protected boolean morphCard;
protected boolean modalDFC;
protected List<UUID> attachments = new ArrayList<>();