patch to address issue 601, this is a work around to get the game shop from crashing due to card definitions that are apparently not 100% compatible with the system.

http://code.google.com/p/wagic/issues/detail?id=601
This commit is contained in:
techdragon.nguyen@gmail.com
2011-03-01 00:58:48 +00:00
parent f68b0ff63e
commit b7fb561705

View File

@@ -199,7 +199,8 @@ ManaCost * ManaCost::parseManaCost(string s, ManaCost * _manaCost, MTGCardInstan
}
}
}
manaCost->addHybrid(colors[0], values[0], colors[1], values[1]);
if (values[0] > 0 || values[1] > 0)
manaCost->addHybrid(colors[0], values[0], colors[1], values[1]);
}
else
{