- Hopefully fixed the bug with X costs and the mana pool.

This commit is contained in:
Sloth
2011-10-28 16:11:27 +00:00
parent c8fcb518ef
commit 5383eb98f1

View File

@@ -448,7 +448,9 @@ public class ManaPool extends Card {
return choice;
}
int numColorless = Integer.parseInt(manaStr);
int numColorless = 0;
if(manaStr.matches("[0-9][0-9]?"))
numColorless = Integer.parseInt(manaStr);
if (numColorless >= totalMana) {
choice = manaChoices.get(0);
return choice;