mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- C15: added Seal of the Guilds
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user