mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
some more changes to modal DFC implementation
This commit is contained in:
parent
f188cb948d
commit
42e38a4e8a
12 changed files with 34 additions and 33 deletions
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.b;
|
package mage.cards.b;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.WhiteManaAbility;
|
import mage.abilities.mana.WhiteManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class BoulderloftPathway extends CardImpl {
|
||||||
public BoulderloftPathway(UUID ownerId, CardSetInfo setInfo) {
|
public BoulderloftPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {W}.
|
// {T}: Add {W}.
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package mage.cards.b;
|
package mage.cards.b;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.keyword.TransformAbility;
|
|
||||||
import mage.abilities.mana.GreenManaAbility;
|
import mage.abilities.mana.GreenManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -16,11 +15,11 @@ public final class BranchloftPathway extends CardImpl {
|
||||||
public BranchloftPathway(UUID ownerId, CardSetInfo setInfo) {
|
public BranchloftPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.secondSideCardClazz = mage.cards.b.BoulderloftPathway.class;
|
this.secondSideCardClazz = mage.cards.b.BoulderloftPathway.class;
|
||||||
|
|
||||||
// {T}: Add {G}.
|
// {T}: Add {G}.
|
||||||
this.addAbility(new GreenManaAbility());
|
this.addAbility(new GreenManaAbility());
|
||||||
this.addAbility(new TransformAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private BranchloftPathway(final BranchloftPathway card) {
|
private BranchloftPathway(final BranchloftPathway card) {
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
package mage.cards.b;
|
package mage.cards.b;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.keyword.TransformAbility;
|
|
||||||
import mage.abilities.mana.WhiteManaAbility;
|
import mage.abilities.mana.WhiteManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.cards.g.GrimclimbPathway;
|
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -17,11 +15,11 @@ public final class BrightclimbPathway extends CardImpl {
|
||||||
public BrightclimbPathway(UUID ownerId, CardSetInfo setInfo) {
|
public BrightclimbPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.secondSideCardClazz = mage.cards.g.GrimclimbPathway.class;
|
this.secondSideCardClazz = mage.cards.g.GrimclimbPathway.class;
|
||||||
|
|
||||||
// {T}: Add {W}.
|
// {T}: Add {W}.
|
||||||
this.addAbility(new WhiteManaAbility());
|
this.addAbility(new WhiteManaAbility());
|
||||||
this.addAbility(new TransformAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private BrightclimbPathway(final BrightclimbPathway card) {
|
private BrightclimbPathway(final BrightclimbPathway card) {
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package mage.cards.c;
|
package mage.cards.c;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.keyword.TransformAbility;
|
|
||||||
import mage.abilities.mana.BlueManaAbility;
|
import mage.abilities.mana.BlueManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -16,11 +15,11 @@ public final class ClearwaterPathway extends CardImpl {
|
||||||
public ClearwaterPathway(UUID ownerId, CardSetInfo setInfo) {
|
public ClearwaterPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.secondSideCardClazz = mage.cards.m.MurkwaterPathway.class;
|
this.secondSideCardClazz = mage.cards.m.MurkwaterPathway.class;
|
||||||
|
|
||||||
// {T}: Add {U}.
|
// {T}: Add {U}.
|
||||||
this.addAbility(new BlueManaAbility());
|
this.addAbility(new BlueManaAbility());
|
||||||
this.addAbility(new TransformAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ClearwaterPathway(final ClearwaterPathway card) {
|
private ClearwaterPathway(final ClearwaterPathway card) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.g;
|
package mage.cards.g;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.BlackManaAbility;
|
import mage.abilities.mana.BlackManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class GrimclimbPathway extends CardImpl {
|
||||||
public GrimclimbPathway(UUID ownerId, CardSetInfo setInfo) {
|
public GrimclimbPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {B}.
|
// {T}: Add {B}.
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.l;
|
package mage.cards.l;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.RedManaAbility;
|
import mage.abilities.mana.RedManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class LavaglidePathway extends CardImpl {
|
||||||
public LavaglidePathway(UUID ownerId, CardSetInfo setInfo) {
|
public LavaglidePathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {R}.
|
// {T}: Add {R}.
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.m;
|
package mage.cards.m;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.BlackManaAbility;
|
import mage.abilities.mana.BlackManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class MurkwaterPathway extends CardImpl {
|
||||||
public MurkwaterPathway(UUID ownerId, CardSetInfo setInfo) {
|
public MurkwaterPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {B}.
|
// {T}: Add {B}.
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package mage.cards.n;
|
package mage.cards.n;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.keyword.TransformAbility;
|
|
||||||
import mage.abilities.mana.RedManaAbility;
|
import mage.abilities.mana.RedManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -16,11 +15,11 @@ public final class NeedlevergePathway extends CardImpl {
|
||||||
public NeedlevergePathway(UUID ownerId, CardSetInfo setInfo) {
|
public NeedlevergePathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.secondSideCardClazz = mage.cards.p.PillarvergePathway.class;
|
this.secondSideCardClazz = mage.cards.p.PillarvergePathway.class;
|
||||||
|
|
||||||
// {T}: Add {R}.
|
// {T}: Add {R}.
|
||||||
this.addAbility(new RedManaAbility());
|
this.addAbility(new RedManaAbility());
|
||||||
this.addAbility(new TransformAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private NeedlevergePathway(final NeedlevergePathway card) {
|
private NeedlevergePathway(final NeedlevergePathway card) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.p;
|
package mage.cards.p;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.WhiteManaAbility;
|
import mage.abilities.mana.WhiteManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class PillarvergePathway extends CardImpl {
|
||||||
public PillarvergePathway(UUID ownerId, CardSetInfo setInfo) {
|
public PillarvergePathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {W}.
|
// {T}: Add {W}.
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package mage.cards.r;
|
package mage.cards.r;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.keyword.TransformAbility;
|
|
||||||
import mage.abilities.mana.RedManaAbility;
|
import mage.abilities.mana.RedManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -16,11 +15,11 @@ public final class RiverglidePathway extends CardImpl {
|
||||||
public RiverglidePathway(UUID ownerId, CardSetInfo setInfo) {
|
public RiverglidePathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.secondSideCardClazz = mage.cards.l.LavaglidePathway.class;
|
this.secondSideCardClazz = mage.cards.l.LavaglidePathway.class;
|
||||||
|
|
||||||
// {T}: Add {U}.
|
// {T}: Add {U}.
|
||||||
this.addAbility(new RedManaAbility());
|
this.addAbility(new RedManaAbility());
|
||||||
this.addAbility(new TransformAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private RiverglidePathway(final RiverglidePathway card) {
|
private RiverglidePathway(final RiverglidePathway card) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package mage.cards.t;
|
package mage.cards.t;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import mage.abilities.mana.GreenManaAbility;
|
import mage.abilities.mana.GreenManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -15,6 +15,7 @@ public final class TimbercrownPathway extends CardImpl {
|
||||||
public TimbercrownPathway(UUID ownerId, CardSetInfo setInfo) {
|
public TimbercrownPathway(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.modalDFC = true;
|
||||||
this.nightCard = true;
|
this.nightCard = true;
|
||||||
|
|
||||||
// {T}: Add {G}.
|
// {T}: Add {G}.
|
||||||
|
|
|
@ -59,6 +59,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
||||||
protected boolean usesVariousArt = false;
|
protected boolean usesVariousArt = false;
|
||||||
protected boolean splitCard;
|
protected boolean splitCard;
|
||||||
protected boolean morphCard;
|
protected boolean morphCard;
|
||||||
|
protected boolean modalDFC;
|
||||||
|
|
||||||
protected List<UUID> attachments = new ArrayList<>();
|
protected List<UUID> attachments = new ArrayList<>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue