mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Cost.parseCostPart add ChooseColor
This commit is contained in:
@@ -341,6 +341,13 @@ public class Cost implements Serializable {
|
|||||||
return new CostUnattach(splitStr[0], description);
|
return new CostUnattach(splitStr[0], description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parse.startsWith("ChooseColor<")) {
|
||||||
|
// ChooseColor<NumToChoose>
|
||||||
|
//TODO expand this to set off different UI for Specialize
|
||||||
|
final String[] splitStr = abCostParse(parse, 1);
|
||||||
|
return new CostChooseColor(splitStr[0]);
|
||||||
|
}
|
||||||
|
|
||||||
if (parse.startsWith("ChooseCreatureType<")) {
|
if (parse.startsWith("ChooseCreatureType<")) {
|
||||||
final String[] splitStr = abCostParse(parse, 1);
|
final String[] splitStr = abCostParse(parse, 1);
|
||||||
return new CostChooseCreatureType(splitStr[0]);
|
return new CostChooseCreatureType(splitStr[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user