- FP player should be able to play only FP cards, Shadow player - Shadow cards, even if effect text doesn't say it

(i.e. "Fellowship: Play Man to draw a card.")
This commit is contained in:
marcins78@gmail.com
2012-01-12 16:14:16 +00:00
parent bb7b048807
commit 6b56526d17
2 changed files with 6 additions and 0 deletions

View File

@@ -445,6 +445,10 @@ public class Filters {
return new Filter() {
@Override
public boolean accepts(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
Side expectedSide = (physicalCard.getOwner().equals(gameState.getCurrentPlayerId()) ? Side.FREE_PEOPLE : Side.SHADOW);
if (physicalCard.getBlueprint().getSide() != expectedSide)
return false;
return physicalCard.getBlueprint().checkPlayRequirements(physicalCard.getOwner(), game, physicalCard, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile);
}
};

View File

@@ -1,6 +1,8 @@
<pre style="font-size:80%">
<b>12 Jan. 2012</b>
- Players can now (using Settings tab) specify which form of answer selection to use - buttons or drop-down.
- FP player should be able to play only FP cards, Shadow player - Shadow cards, even if effect text doesn't say it
(i.e. "Fellowship: Play Man to draw a card.")
<b>11 Jan. 2012</b>
- "Isengard Sword" now correctly gives -2 Strength to character in skirmish against its bearer.