mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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")) {
|
if (sq[0].contains("CardManaCost")) {
|
||||||
return CardFactoryUtil.doXMath(CardUtil.getConvertedManaCost(c), m, c);
|
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
|
// Count$ChosenNumber
|
||||||
if (sq[0].contains("ChosenNumber")) {
|
if (sq[0].contains("ChosenNumber")) {
|
||||||
return CardFactoryUtil.doXMath(c.getChosenNumber(), m, c);
|
return CardFactoryUtil.doXMath(c.getChosenNumber(), m, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user