Forget me not

This commit is contained in:
tritoch 2017-06-28 16:09:42 -05:00 committed by GitHub
parent 6b440d6565
commit 9f896e1a0a

View File

@ -376,7 +376,7 @@ def error_check(mtgjson, card_corrections={}):
errors.append({"name": card['name'], "key": "cmc", "oldvalue": card['cmc'], "newvalue": workingCMC, "fixed": True, "match": card['manaCost']})
card['cmc'] = workingCMC
else:
if 'type' in card and 'land' in card['type'].lower():
if 'type' in card and not 'land' in card['type'].lower():
errors.append({"name": card['name'], "key": "manaCost", "value": ""})
if not 'cmc' in card:
errors.append({"name": card['name'], "key": "cmc", "value": ""})