mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Update getDefinedCards for how it get Valid* cards so the syntax is consistent with other Valid script. Also remove the hacky way to set Effect as mutable for Raging River and Plague of Vermin
This commit is contained in:
@@ -121,7 +121,7 @@ public class Puzzle extends GameState implements InventoryItem, Comparable<Puzzl
|
||||
goalCard.setOwner(human);
|
||||
goalCard.setImageKey("t:puzzle");
|
||||
goalCard.setName("Puzzle Goal");
|
||||
goalCard.addType("Effect");
|
||||
goalCard.setImmutable(true);
|
||||
goalCard.setOracleText(getGoalDescription());
|
||||
|
||||
int turnCorr = 0;
|
||||
|
||||
@@ -221,7 +221,7 @@ public class CardDetailUtil {
|
||||
String curColors = "";
|
||||
|
||||
// do not show current colors for temp effect cards, emblems and the like
|
||||
if (state.getType().isEmblem() || state.getType().hasSubtype("Effect")) {
|
||||
if (state.getCard().isImmutable()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -275,16 +275,14 @@ public class CardDetailUtil {
|
||||
|
||||
// Token
|
||||
if (card.isToken()) {
|
||||
if(card.getCurrentState().getType().hasSubtype("Effect"))
|
||||
area.append("Effect");
|
||||
else if(card.getCurrentState().getType().isEmblem())
|
||||
area.append("Emblem");
|
||||
else
|
||||
area.append("Token");
|
||||
area.append("Token");
|
||||
} else if (card.isTokenCard()) {
|
||||
area.append("Token card");
|
||||
} else if(card.isEmblem()) {
|
||||
area.append("Emblem");
|
||||
} else if(card.isImmutable()) {
|
||||
area.append("Effect");
|
||||
}
|
||||
|
||||
// card text
|
||||
if (area.length() != 0) {
|
||||
area.append("\n");
|
||||
|
||||
Reference in New Issue
Block a user