Improve error message in CardRules

This commit is contained in:
Sol
2011-09-23 14:40:16 +00:00
parent 72999b3172
commit a45e8a8c74

View File

@@ -75,6 +75,9 @@ public final class CardRules {
//System.out.println(cardName);
if (cardType.isCreature()) {
if (ptLine == null){
throw new RuntimeException(String.format("Creature '%s' has bad p/t stats", cardName));
}
int slashPos = ptLine.indexOf('/');
if (slashPos == -1) {
throw new RuntimeException(String.format("Creature '%s' has bad p/t stats", cardName));