Eomer, Keeper of Oaths shuffles deck even if no cards played
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.gempukku.lotro.cards.set8.rohan;
|
package com.gempukku.lotro.cards.set8.rohan;
|
||||||
|
|
||||||
import com.gempukku.lotro.logic.cardtype.AbstractCompanion;
|
import com.gempukku.lotro.logic.cardtype.AbstractCompanion;
|
||||||
|
import com.gempukku.lotro.logic.effects.ShuffleDeckEffect;
|
||||||
import com.gempukku.lotro.logic.timing.TriggerConditions;
|
import com.gempukku.lotro.logic.timing.TriggerConditions;
|
||||||
import com.gempukku.lotro.logic.effects.RevealTopCardsOfDrawDeckEffect;
|
import com.gempukku.lotro.logic.effects.RevealTopCardsOfDrawDeckEffect;
|
||||||
import com.gempukku.lotro.logic.effects.choose.ChooseAndPlayCardFromDeckEffect;
|
import com.gempukku.lotro.logic.effects.choose.ChooseAndPlayCardFromDeckEffect;
|
||||||
@@ -49,6 +50,8 @@ public class Card8_087 extends AbstractCompanion {
|
|||||||
new PlayAnyNumberOfCardsFromDeckEffect(action, playerId, rohanPossessions));
|
new PlayAnyNumberOfCardsFromDeckEffect(action, playerId, rohanPossessions));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
action.appendEffect(
|
||||||
|
new ShuffleDeckEffect(playerId));
|
||||||
return Collections.singletonList(action);
|
return Collections.singletonList(action);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -87,8 +87,10 @@ public class AttachPermanentAction extends AbstractCostToEffectAction {
|
|||||||
game.getGameState().addCardToZone(game, _cardToAttach, Zone.VOID_FROM_HAND);
|
game.getGameState().addCardToZone(game, _cardToAttach, Zone.VOID_FROM_HAND);
|
||||||
else
|
else
|
||||||
game.getGameState().addCardToZone(game, _cardToAttach, Zone.VOID);
|
game.getGameState().addCardToZone(game, _cardToAttach, Zone.VOID);
|
||||||
if (playedFromZone == Zone.DECK)
|
if (playedFromZone == Zone.DECK) {
|
||||||
|
game.getGameState().sendMessage(_cardToAttach.getOwner() + " shuffles his or her deck");
|
||||||
game.getGameState().shuffleDeck(_cardToAttach.getOwner());
|
game.getGameState().shuffleDeck(_cardToAttach.getOwner());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_targetChosen) {
|
if (!_targetChosen) {
|
||||||
|
|||||||
@@ -78,8 +78,10 @@ public class PlayEventAction extends AbstractCostToEffectAction {
|
|||||||
else
|
else
|
||||||
game.getGameState().addCardToZone(game, _eventPlayed, Zone.VOID);
|
game.getGameState().addCardToZone(game, _eventPlayed, Zone.VOID);
|
||||||
|
|
||||||
if (playedFromZone == Zone.DECK)
|
if (playedFromZone == Zone.DECK) {
|
||||||
|
game.getGameState().sendMessage(_eventPlayed.getOwner() + " shuffles his or her deck");
|
||||||
game.getGameState().shuffleDeck(_eventPlayed.getOwner());
|
game.getGameState().shuffleDeck(_eventPlayed.getOwner());
|
||||||
|
}
|
||||||
|
|
||||||
game.getGameState().eventPlayed(_eventPlayed);
|
game.getGameState().eventPlayed(_eventPlayed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,8 +78,10 @@ public class PlayPermanentAction extends AbstractCostToEffectAction {
|
|||||||
game.getGameState().addCardToZone(game, _permanentPlayed, Zone.VOID_FROM_HAND);
|
game.getGameState().addCardToZone(game, _permanentPlayed, Zone.VOID_FROM_HAND);
|
||||||
else
|
else
|
||||||
game.getGameState().addCardToZone(game, _permanentPlayed, Zone.VOID);
|
game.getGameState().addCardToZone(game, _permanentPlayed, Zone.VOID);
|
||||||
if (playedFromZone == Zone.DECK && !_skipShuffling)
|
if (playedFromZone == Zone.DECK && !_skipShuffling) {
|
||||||
|
game.getGameState().sendMessage(_permanentPlayed.getOwner() + " shuffles his or her deck");
|
||||||
game.getGameState().shuffleDeck(_permanentPlayed.getOwner());
|
game.getGameState().shuffleDeck(_permanentPlayed.getOwner());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_discountResolved) {
|
if (!_discountResolved) {
|
||||||
|
|||||||
Reference in New Issue
Block a user