less spam more brains

This commit is contained in:
Maxmtg
2013-02-21 07:25:59 +00:00
parent fd7d013c47
commit 22601e8c65

View File

@@ -27,7 +27,7 @@ final class CardFace implements ICardCharacteristics {
private ManaCost manaCost = ManaCost.NO_COST;
private ColorSet color = null;
private String oracleText = "";
private String oracleText = null;
private int iPower = -1;
private int iToughness = -1;
private String power = null;
@@ -76,7 +76,7 @@ final class CardFace implements ICardCharacteristics {
}
public void calculateColor() { // Most scripts do not specify color explicitly
if ( StringUtils.isBlank( oracleText ) ) System.err.println(name + " has no Oracle text");
if ( null == oracleText ) { System.err.println(name + " has no Oracle text"); oracleText = ""; }
if ( manaCost == null && color == null ) System.err.println(name + " has neither ManaCost nor Color");
if ( color == null ) color = ColorSet.fromManaCost(manaCost);
}