- fixed a bug with Damage parsing in _cards.dat (should fix damages for Lava axe)
This commit is contained in:
wagic.the.homebrew
2008-12-01 07:13:33 +00:00
parent 9ec06eb4e7
commit 179b7deeb8

View File

@@ -282,6 +282,7 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
found = s.find("damage");
if (found != string::npos){
unsigned int start = s.find(":",found);
if (start == string::npos) start = s.find(" ",found);
unsigned int end = s.find(" ",start);
int damage;
ManaCost * cost = ManaCost::parseManaCost(s);