mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Hopefully fixed the bug with X costs and the mana pool.
This commit is contained in:
@@ -447,8 +447,10 @@ public class ManaPool extends Card {
|
||||
choice = manaChoices.get(0);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user