fix for cards wuth rarity

now without legacy support, due to revision updating from legacy version
This commit is contained in:
reimannsum 2015-10-29 10:24:31 -04:00
parent 377aa9453c
commit 240a4f67f3
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ def sortcards(cards):
# color classes need to find the mana cost
fields = card.split('|')
if len(fields) != 10:
if len(fields) != 11:
classes['unknown color'] += [card]
else:
cost = fields[7]
cost = fields[8]
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: