Merge pull request #1 from reimannsum/patch-1

fix for cards with rarity
This commit is contained in:
reimannsum 2015-10-30 12:34:23 -04:00
commit 91ed957010

View file

@ -91,10 +91,10 @@ def sortcards(cards):
# color classes need to find the mana cost # color classes need to find the mana cost
fields = card.split('|') fields = card.split('|')
if len(fields) != 10: if len(fields) != 11:
classes['unknown color'] += [card] classes['unknown color'] += [card]
else: else:
cost = fields[7] cost = fields[8]
color_count = 0 color_count = 0
if 'W' in cost or 'U' in cost or 'B' in cost or 'R' in cost or 'G' in cost: if 'W' in cost or 'U' in cost or 'B' in cost or 'R' in cost or 'G' in cost:
if 'W' in cost: if 'W' in cost: