Update CardFace.java

This commit is contained in:
Rob Schnautz
2018-01-20 20:45:06 +00:00
parent 9d1c6eaa7f
commit d7674c15b5

View File

@@ -90,7 +90,7 @@ final class CardFace implements ICardFace {
void setPtText(String value) { void setPtText(String value) {
final int slashPos = value.indexOf('/'); final int slashPos = value.indexOf('/');
if (slashPos == -1) { if (slashPos == -1) {
throw new RuntimeException(TextUtil.concatWithSpace("Creature", TextUtil.enclosedSingleQuote(this.getName()),"has bad p/t stats")); throw new RuntimeException("Creature '" + this.getName() + "' has bad p/t stats");
} }
boolean negPower = value.charAt(0) == '-'; boolean negPower = value.charAt(0) == '-';
boolean negToughness = value.charAt(slashPos + 1) == '-'; boolean negToughness = value.charAt(slashPos + 1) == '-';