Bug in mana cost math
This commit is contained in:
parent
d3c4ae433e
commit
436c635eb2
1 changed files with 1 additions and 1 deletions
2
mtg.py
2
mtg.py
|
@ -104,9 +104,9 @@ class ManaCost:
|
||||||
def __sub__(self, other):
|
def __sub__(self, other):
|
||||||
result = ManaCost()
|
result = ManaCost()
|
||||||
if isinstance(other, ManaCost):
|
if isinstance(other, ManaCost):
|
||||||
|
#TODO: Subtract hybrid symbols
|
||||||
result.any = self.any - other.any
|
result.any = self.any - other.any
|
||||||
result.mana = self.mana - other.mana
|
result.mana = self.mana - other.mana
|
||||||
result.hybrid = self.hybrid - other.hybrid
|
|
||||||
result.snow = self.snow - other.snow
|
result.snow = self.snow - other.snow
|
||||||
return result
|
return result
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
Loading…
Reference in a new issue