- 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:
@@ -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
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user