Capture a card's colors based on its mana cost
This commit is contained in:
parent
38179a2672
commit
0dc2e4e794
1 changed files with 1 additions and 0 deletions
1
mtg.py
1
mtg.py
|
@ -180,6 +180,7 @@ class Card:
|
|||
self.toughness = toughness
|
||||
self.rarity = rarity
|
||||
self.text = text
|
||||
self.colors = [color for color, cost in self.cost.mana.mana.iteritems() if cost > 0]
|
||||
self.is_tapped = False
|
||||
self.abilities = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue