mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Improve error message in CardRules
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user