- Fixed an incompatibility of getShortColorsString and ManaCost (the former translating Colorless to C which the latter doesn't take).

This commit is contained in:
Sloth
2011-09-04 09:42:55 +00:00
parent 7d15448012
commit e2c99a4218

View File

@@ -31,7 +31,7 @@ public class ManaCost {
* @param manaCost a {@link java.lang.String} object. * @param manaCost a {@link java.lang.String} object.
*/ */
public ManaCost(String manaCost) { public ManaCost(String manaCost) {
if (manaCost.equals("")) if (manaCost.equals("") || manaCost.equals("C"))
manaCost = "0"; manaCost = "0";
while (manaCost.contains("X")) { while (manaCost.contains("X")) {