diff --git a/Mage.Sets/src/mage/sets/Sets.java b/Mage.Sets/src/mage/sets/Sets.java index e2ded617368..40f6be3311f 100644 --- a/Mage.Sets/src/mage/sets/Sets.java +++ b/Mage.Sets/src/mage/sets/Sets.java @@ -133,11 +133,17 @@ public class Sets extends HashMap { if (card.getCardType().contains(CardType.CREATURE)) { for (String type : card.getSubtype()) { creatureTypes.add(type); + if (type.equals("")) { + throw new IllegalStateException("Card with empty subtype: " + card.getName()); + } } } if (!card.getCardType().contains(CardType.LAND)) nonLandNames.add(card.getName()); } } + if (creatureTypes.contains("")) { + creatureTypes.remove(""); + } System.out.println("It took " + (System.currentTimeMillis() - t1) / 1000 + " ms to load all cards."); } }