- C15: added Seal of the Guilds

This commit is contained in:
swordshine
2016-01-03 12:40:11 +00:00
parent 1015e23c27
commit 8310a2c28f
5 changed files with 22 additions and 8 deletions

View File

@@ -1459,6 +1459,14 @@ public class AbilityUtils {
return sum;
}
//Count$HasNumChosenColors.<DefinedCards related to spellability>
if (sq[0].contains("HasNumChosenColors")) {
int sum = 0;
for (Card card : AbilityUtils.getDefinedCards(sa.getHostCard(), sq[1], sa)) {
sum += CardUtil.getColors(card).getSharedColors(ColorSet.fromNames(c.getChosenColors())).countColors();
}
return sum;
}
if (sq[0].startsWith("TriggerRememberAmount")) {
final SpellAbility root = sa.getRootAbility();
int count = 0;

View File

@@ -3649,10 +3649,6 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAnyColor(MagicColor.fromName(source.getChosenColor())))
return false;
} else if (property.equals("AllChosenColors")) {
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAllColors(ColorSet.fromNames(source.getChosenColors()).getColor()))
return false;
} else if (property.equals("AnyChosenColor")) {
if (!source.hasChosenColor() || !CardUtil.getColors(this).hasAnyColor(ColorSet.fromNames(source.getChosenColors()).getColor()))
return false;