mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added Dream Chisel and Exiled Doomsayer
This commit is contained in:
@@ -233,6 +233,7 @@ public class CardFactoryUtil {
|
||||
final StringBuilder sbStack = new StringBuilder();
|
||||
sbStack.append(sourceCard.getName()).append(" - turn this card face up.");
|
||||
morphUp.setStackDescription(sbStack.toString());
|
||||
morphUp.setIsMorphUp(true);
|
||||
|
||||
return morphUp;
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ public abstract class SpellAbility implements ISpellAbility {
|
||||
private boolean cycling = false;
|
||||
private boolean delve = false;
|
||||
private boolean offering = false;
|
||||
private boolean morphup = false;
|
||||
|
||||
private Card targetCard;
|
||||
/** The chosen target. */
|
||||
@@ -330,6 +331,28 @@ public abstract class SpellAbility implements ISpellAbility {
|
||||
return this.replicate;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* setIsMorphUp.
|
||||
* </p>
|
||||
*
|
||||
* @param b
|
||||
* a boolean.
|
||||
*/
|
||||
public final void setIsMorphUp(final boolean b) {
|
||||
this.morphup = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* isMorphUp.
|
||||
* </p>
|
||||
*
|
||||
* @return a boolean.
|
||||
*/
|
||||
public boolean isMorphUp() {
|
||||
return this.morphup;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
||||
@@ -25,6 +25,7 @@ import forge.card.cardfactory.CardFactoryUtil;
|
||||
import forge.card.mana.ManaCostBeingPaid;
|
||||
import forge.card.mana.ManaCostShard;
|
||||
import forge.card.spellability.AbilityActivated;
|
||||
import forge.card.spellability.Spell;
|
||||
import forge.card.spellability.SpellAbility;
|
||||
import forge.card.spellability.Target;
|
||||
import forge.game.player.Player;
|
||||
@@ -73,13 +74,17 @@ public class StaticAbilityCostChange {
|
||||
return;
|
||||
}
|
||||
} else if (params.get("Type").equals("NonManaAbility")) {
|
||||
if (!(sa instanceof AbilityActivated) || sa.isManaAbility()) {
|
||||
return;
|
||||
}
|
||||
if (!(sa instanceof AbilityActivated) || sa.isManaAbility()) {
|
||||
return;
|
||||
}
|
||||
} else if (params.get("Type").equals("Flashback")) {
|
||||
if (!sa.isFlashBackAbility()) {
|
||||
return;
|
||||
}
|
||||
if (!sa.isFlashBackAbility()) {
|
||||
return;
|
||||
}
|
||||
} else if (params.get("Type").equals("MorphUp")) {
|
||||
if (!sa.isMorphUp()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
|
||||
@@ -211,6 +216,10 @@ public class StaticAbilityCostChange {
|
||||
if (!sa.isFlashBackAbility()) {
|
||||
return;
|
||||
}
|
||||
} else if (params.get("Type").equals("MorphDown")) {
|
||||
if (!sa.isSpell() || !((Spell) sa).isCastFaceDown()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (params.containsKey("ValidTarget")) {
|
||||
|
||||
Reference in New Issue
Block a user