- Stacked cards and cards in discard affect game ONLY when their side (Shadow/FP) matches their owner's current role.

This commit is contained in:
marcins78@gmail.com
2012-02-01 17:50:40 +00:00
parent e60a0cbafd
commit aca50f9a83
3 changed files with 22 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ public class Card15_117 extends AbstractMinion {
@Override @Override
public Modifier getAlwaysOnModifier(PhysicalCard self) { public Modifier getAlwaysOnModifier(PhysicalCard self) {
return new KeywordModifier(self, self, null, Keyword.DAMAGE, new CountActiveEvaluator(5, null, CardType.COMPANION)); return new KeywordModifier(self, self, null, Keyword.DAMAGE, new CountActiveEvaluator(5, (Integer) null, CardType.COMPANION));
} }
@Override @Override

View File

@@ -823,19 +823,33 @@ public class GameState {
} }
private void startAffectingStacked(LotroGame game, PhysicalCard card) { private void startAffectingStacked(LotroGame game, PhysicalCard card) {
((PhysicalCardImpl) card).startAffectingGameStacked(game); if (isCardAffectingGame(card))
((PhysicalCardImpl) card).startAffectingGameStacked(game);
} }
private void stopAffectingStacked(PhysicalCard card) { private void stopAffectingStacked(PhysicalCard card) {
((PhysicalCardImpl) card).stopAffectingGameStacked(); if (isCardAffectingGame(card))
((PhysicalCardImpl) card).stopAffectingGameStacked();
} }
private void startAffectingInDiscard(LotroGame game, PhysicalCard card) { private void startAffectingInDiscard(LotroGame game, PhysicalCard card) {
((PhysicalCardImpl) card).startAffectingGameInDiscard(game); if (isCardAffectingGame(card))
((PhysicalCardImpl) card).startAffectingGameInDiscard(game);
} }
private void stopAffectingInDiscard(PhysicalCard card) { private void stopAffectingInDiscard(PhysicalCard card) {
((PhysicalCardImpl) card).stopAffectingGameInDiscard(); if (isCardAffectingGame(card))
((PhysicalCardImpl) card).stopAffectingGameInDiscard();
}
private boolean isCardAffectingGame(PhysicalCard card) {
final Side side = card.getBlueprint().getSide();
if (side == Side.SHADOW)
return !getCurrentPlayerId().equals(card.getOwner());
else if (side == Side.FREE_PEOPLE)
return getCurrentPlayerId().equals(card.getOwner());
else
return false;
} }
public void setCurrentPhase(Phase phase) { public void setCurrentPhase(Phase phase) {

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%"> <pre style="font-size:80%">
<b>1 Feb. 2012</b>
- Stacked cards and cards in discard affect game ONLY when their side (Shadow/FP) matches their owner's current role.
<b>31 Jan. 2012</b> <b>31 Jan. 2012</b>
- "Sword of Minas Morgul" now correctly discards the possession born by a character skirmishing the Nazgul. - "Sword of Minas Morgul" now correctly discards the possession born by a character skirmishing the Nazgul.