From cae43e185ea7d2d988b71138ed1dd53c03a21ddb Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 8 Dec 2011 17:47:39 +0000 Subject: [PATCH] "Seclusion" --- .../lotro/cards/set12/elven/Card12_023.java | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/elven/Card12_023.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/elven/Card12_023.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/elven/Card12_023.java new file mode 100644 index 000000000..60d131f21 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set12/elven/Card12_023.java @@ -0,0 +1,39 @@ +package com.gempukku.lotro.cards.set12.elven; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; + +/** + * Set: Black Rider + * Side: Free + * Culture: Elven + * Twilight Cost: 3 + * Type: Event • Maneuver + * Game Text: Toil 2. (For each [ELVEN] character you exert when playing this, its twilight cost is -2) Spot an Elf + * companion to discard a condition from play. + */ +public class Card12_023 extends AbstractEvent { + public Card12_023() { + super(Side.FREE_PEOPLE, 3, Culture.ELVEN, "Seclusion", Phase.MANEUVER); + addKeyword(Keyword.TOIL, 2); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { + return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile) + && PlayConditions.canSpot(game, Race.ELF, CardType.COMPANION); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + action.appendEffect( + new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.CONDITION)); + return action; + } +}