- Fixed "Trapped and Alone" and all other cards that remove keyword bonuses granted by other cards.

This commit is contained in:
marcins78@gmail.com
2011-10-18 19:44:30 +00:00
parent 3d74950a7e
commit 09c54b15b9
5 changed files with 4 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ public class CancelKeywordBonusModifier extends AbstractModifier {
private Keyword _keyword;
public CancelKeywordBonusModifier(PhysicalCard source, Keyword keyword, Filter affectFilter) {
super(source, "Cancel " + keyword.getHumanReadable() + " keyword", affectFilter, new ModifierEffect[]{ModifierEffect.STRENGTH_MODIFIER});
super(source, "Cancel " + keyword.getHumanReadable() + " keyword", affectFilter, new ModifierEffect[]{ModifierEffect.KEYWORD_MODIFIER});
_keyword = keyword;
}

View File

@@ -470,8 +470,6 @@ public class Filters {
}
private static Filter changeToFilter(Filterable filter) {
if (filter == null)
return null;
if (filter instanceof Filter)
return (Filter) filter;
else if (filter instanceof PhysicalCard)

View File

@@ -27,7 +27,7 @@ public abstract class AbstractModifier implements Modifier {
protected AbstractModifier(PhysicalCard source, String text, Filterable affectFilter, Condition condition, ModifierEffect[] effects) {
_physicalCard = source;
_text = text;
_affectFilter = Filters.and(affectFilter);
_affectFilter = (affectFilter != null) ? Filters.and(affectFilter) : null;
_condition = condition;
_effects = effects;
}

View File

@@ -62,7 +62,7 @@ public class DefaultCardCollection implements MutableCardCollection {
if (cardTypes == null || cardTypes.contains(blueprint.getCardType()))
if (cultures == null || cultures.contains(blueprint.getCulture()))
if (containsAllKeywords(blueprint, keywords))
if (siteNumber == null || blueprint.getSiteNumber() == siteNumber.intValue())
if (siteNumber == null || blueprint.getSiteNumber() == siteNumber)
result.add(new Item(Item.Type.CARD, count, blueprintId, blueprint));
}
}

View File

@@ -5,6 +5,7 @@
- Added Mulligan rule to "Community..." formats and "Towers Standard" format.
- Added revealing effect to all cards, for now the revealed cards will be only shown in the log, until I figure out
something better.
- Fixed "Trapped and Alone" and all other cards that remove keyword bonuses granted by other cards.
<b>17 Oct. 2011</b>
- "Coming for the Ring" is no longed considered Free People card by the game.