mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Improve error message in CardRules
This commit is contained in:
@@ -75,6 +75,9 @@ public final class CardRules {
|
|||||||
//System.out.println(cardName);
|
//System.out.println(cardName);
|
||||||
|
|
||||||
if (cardType.isCreature()) {
|
if (cardType.isCreature()) {
|
||||||
|
if (ptLine == null){
|
||||||
|
throw new RuntimeException(String.format("Creature '%s' has bad p/t stats", cardName));
|
||||||
|
}
|
||||||
int slashPos = ptLine.indexOf('/');
|
int slashPos = ptLine.indexOf('/');
|
||||||
if (slashPos == -1) {
|
if (slashPos == -1) {
|
||||||
throw new RuntimeException(String.format("Creature '%s' has bad p/t stats", cardName));
|
throw new RuntimeException(String.format("Creature '%s' has bad p/t stats", cardName));
|
||||||
|
|||||||
Reference in New Issue
Block a user