Bug in mana cost math

This commit is contained in:
Correl Roush 2010-09-02 11:56:42 -04:00
parent d3c4ae433e
commit 436c635eb2

2
mtg.py
View file

@ -104,9 +104,9 @@ class ManaCost:
def __sub__(self, other):
result = ManaCost()
if isinstance(other, ManaCost):
#TODO: Subtract hybrid symbols
result.any = self.any - other.any
result.mana = self.mana - other.mana
result.hybrid = self.hybrid - other.hybrid
result.snow = self.snow - other.snow
return result
def __repr__(self):