mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fix the display of color identity of colorless cards.
This commit is contained in:
@@ -168,6 +168,10 @@ public class CardDetailUtil {
|
||||
if (identity.hasRed()) { strIdentity += "{R}"; }
|
||||
if (identity.hasGreen()) { strIdentity += "{G}"; }
|
||||
|
||||
if (strIdentity.isEmpty()) {
|
||||
strIdentity = "colorless";
|
||||
}
|
||||
|
||||
return strIdentity;
|
||||
}
|
||||
|
||||
@@ -564,7 +568,7 @@ public class CardDetailUtil {
|
||||
area.append("\n\n");
|
||||
}
|
||||
area.append("Color identity: ");
|
||||
area.append(colorIdent.isEmpty() ? "colorless" : colorIdent);
|
||||
area.append(colorIdent);
|
||||
}
|
||||
|
||||
//show current storm count for storm cards
|
||||
|
||||
Reference in New Issue
Block a user