more fixes

This commit is contained in:
Northmoc
2023-12-01 20:32:43 -05:00
parent 9a7b4c4865
commit 2214bdea34
4 changed files with 9 additions and 3 deletions

View File

@@ -2849,6 +2849,12 @@ public class AbilityUtils {
return doXMath(CardUtil.getColorsFromCards(list).countColors(), expr, c, ctb);
}
if (sq[0].startsWith("ColorsDefined")) {
final String restriction = l[0].substring(14);
final CardCollection list = getDefinedCards(c, restriction, ctb);
return doXMath(CardUtil.getColorsFromCards(list).countColors(), expr, c, ctb);
}
// TODO move below to handlePaid
if (sq[0].startsWith("SumPower")) {
final String[] restrictions = l[0].split("_");