- Free people cards should no longer allow playing shadow cards and vice-versa.

This commit is contained in:
marcins78@gmail.com
2013-03-10 19:35:46 +00:00
parent a00dac07f4
commit 253d2a74d7
2 changed files with 13 additions and 9 deletions

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%">
<b>10 Mar. 2013</b>
- Free people cards should no longer allow playing shadow cards and vice-versa.
<b>8 Mar. 2013</b>
- You can't play events outside of their phase now, when using other cards like "Dammed Gate-Stream" or "Bilbo, Bearer
of Things Burgled". Response events can't be played at all using other cards.

View File

@@ -14,14 +14,15 @@ public class ExtraFilters {
}
public static Filter attachableTo(final LotroGame game, final int twilightModifier, final Filterable... filters) {
return new Filter() {
@Override
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
if (!(physicalCard.getBlueprint() instanceof AbstractAttachable))
return false;
AbstractAttachable weapon = (AbstractAttachable) physicalCard.getBlueprint();
return weapon.checkPlayRequirements(physicalCard.getOwner(), game, physicalCard, 0, Filters.and(filters), twilightModifier);
}
};
return Filters.and(Filters.playable(game),
new Filter() {
@Override
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
if (!(physicalCard.getBlueprint() instanceof AbstractAttachable))
return false;
AbstractAttachable weapon = (AbstractAttachable) physicalCard.getBlueprint();
return weapon.checkPlayRequirements(physicalCard.getOwner(), game, physicalCard, 0, Filters.and(filters), twilightModifier);
}
});
}
}