mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
KeywordWithCost.cost avoid bad cost parse for complicated keywords
This commit is contained in:
@@ -7,7 +7,8 @@ public class KeywordWithCost extends KeywordInstance<KeywordWithCost> {
|
||||
|
||||
@Override
|
||||
protected void parse(String details) {
|
||||
cost = new Cost(details.split("\\|", 2)[0].trim(), false);
|
||||
String[] allDetails = details.split(":");
|
||||
cost = new Cost(allDetails[0].split("\\|", 2)[0].trim(), false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user