Capture a card's colors based on its mana cost

This commit is contained in:
Correl Roush 2010-07-01 17:54:31 -04:00
parent 38179a2672
commit 0dc2e4e794

1
mtg.py
View file

@ -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 = []