- Free people cards should no longer allow playing shadow cards and vice-versa.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user