mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
add an xCount for counting the number of colors a card has
This commit is contained in:
@@ -3129,6 +3129,10 @@ public class CardFactoryUtil {
|
||||
if (sq[0].contains("CardManaCost")) {
|
||||
return CardFactoryUtil.doXMath(CardUtil.getConvertedManaCost(c), m, c);
|
||||
}
|
||||
// Count$CardNumColors
|
||||
if (sq[0].contains("CardNumColors")) {
|
||||
return CardFactoryUtil.doXMath(CardUtil.getColors(c).size(), m, c);
|
||||
}
|
||||
// Count$ChosenNumber
|
||||
if (sq[0].contains("ChosenNumber")) {
|
||||
return CardFactoryUtil.doXMath(c.getChosenNumber(), m, c);
|
||||
|
||||
Reference in New Issue
Block a user