- DTK: Added Qarsi Deceiver

This commit is contained in:
swordshine
2015-03-16 13:08:53 +00:00
parent b395d34eeb
commit c67965a673
3 changed files with 18 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ public class CardFactoryUtil {
final StringBuilder sbStack = new StringBuilder(); final StringBuilder sbStack = new StringBuilder();
sbStack.append(sourceCard.getName()).append(" - turn this card face up."); sbStack.append(sourceCard.getName()).append(" - turn this card face up.");
manifestUp.setStackDescription(sbStack.toString()); manifestUp.setStackDescription(sbStack.toString());
//manifestUp.setIsMorphUp(true); manifestUp.setIsManifestUp(true);
return manifestUp; return manifestUp;
} }

View File

@@ -310,6 +310,14 @@ public class AbilityManaPart implements java.io.Serializable {
} }
continue; continue;
} }
if (restriction.equals("MorphOrManifest")) {
if ((sa.isSpell() && sa.getHostCard().isCreature() && ((Spell) sa).isCastFaceDown())
|| sa.isManifestUp() || sa.isMorphUp()) {
return true;
} else {
continue;
}
}
if (sa.isAbility()) { if (sa.isAbility()) {
if (restriction.startsWith("Activated")) { if (restriction.startsWith("Activated")) {
@@ -320,6 +328,7 @@ public class AbilityManaPart implements java.io.Serializable {
} }
} }
if (sa.getHostCard() != null) { if (sa.getHostCard() != null) {
if (sa.getHostCard().isValid(restriction, this.getSourceCard().getController(), this.getSourceCard())) { if (sa.getHostCard().isValid(restriction, this.getSourceCard().getController(), this.getSourceCard())) {
return true; return true;

View File

@@ -94,6 +94,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
private boolean dash = false; private boolean dash = false;
private boolean offering = false; private boolean offering = false;
private boolean morphup = false; private boolean morphup = false;
private boolean manifestUp = false;
private boolean cumulativeupkeep = false; private boolean cumulativeupkeep = false;
private boolean outlast = false; private boolean outlast = false;
private SplitSide splitSide = null; private SplitSide splitSide = null;
@@ -286,6 +287,13 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
morphup = b; morphup = b;
} }
public boolean isManifestUp() {
return manifestUp;
}
public final void setIsManifestUp(final boolean b) {
manifestUp = b;
}
public boolean isCycling() { public boolean isCycling() {
return cycling; return cycling;
} }