mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Hopefully fixed the bug with X costs and the mana pool.
This commit is contained in:
@@ -448,7 +448,9 @@ public class ManaPool extends Card {
|
|||||||
return choice;
|
return choice;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numColorless = Integer.parseInt(manaStr);
|
int numColorless = 0;
|
||||||
|
if(manaStr.matches("[0-9][0-9]?"))
|
||||||
|
numColorless = Integer.parseInt(manaStr);
|
||||||
if (numColorless >= totalMana) {
|
if (numColorless >= totalMana) {
|
||||||
choice = manaChoices.get(0);
|
choice = manaChoices.get(0);
|
||||||
return choice;
|
return choice;
|
||||||
|
|||||||
Reference in New Issue
Block a user