mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-23 07:28:39 -05:00
Merge pull request #154 from dev-id/error-for-manaCost
Error for manaCost == ""
This commit is contained in:
commit
d90d05b942
|
|
@ -190,7 +190,7 @@ def error_check(mtgjson, card_corrections={}):
|
|||
{"name": card['name'], "key": "subtypes", "value": ""})
|
||||
if '-' in card['type']:
|
||||
card['type'] = card['type'].replace('-',u'—')
|
||||
if 'manaCost' in card:
|
||||
if 'manaCost' in card and card['manaCost'] != "":
|
||||
workingCMC = 0
|
||||
stripCost = card['manaCost'].replace('{', '').replace('}', '')
|
||||
for manaSymbol in stripCost:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user