From 1e7302c5052bbbf5a33b4e9ce8996196cbcface1 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Tue, 7 Jun 2016 22:00:52 -0700 Subject: [PATCH] Fixed: --use-text-set-icon parameter doesnt work. --- domdiv/cards.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/domdiv/cards.py b/domdiv/cards.py index 284509d..0c15c56 100644 --- a/domdiv/cards.py +++ b/domdiv/cards.py @@ -90,10 +90,10 @@ class Card(object): @classmethod def getSetText(cls, setName, cardName): - if setName in cls.setTextIcons: - return cls.setTextIcons[setName] - if cardName.lower() in cls.promoTextIcons: - return cls.promoTextIcons[cardName.lower()] + if setName in setTextIcons: + return setTextIcons[setName] + if cardName.lower() in promoTextIcons: + return promoTextIcons[cardName.lower()] return None def __init__(self, name, cardset, types, cost, description='', potcost=0, extra=''): @@ -133,7 +133,7 @@ class Card(object): return setImage def setTextIcon(self): - setTextIcon = getSetText(self.cardset, self.name) + setTextIcon = Card.getSetText(self.cardset, self.name) if setTextIcon is None and self.cardset not in ['base', 'extra'] and not self.isExpansion(): print 'warning, no set text for set "%s" card "%s"' % (self.cardset, self.name) setTextIcons[self.cardset] = 0