From 7377b71a77f418d2af7fde4227eabbe382bf1963 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 7 Mar 2012 13:01:47 +0000 Subject: [PATCH] "Grima" --- .../lotro/cards/set18/men/Card18_067.java | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/men/Card18_067.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/men/Card18_067.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/men/Card18_067.java new file mode 100644 index 000000000..dc09d4060 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/men/Card18_067.java @@ -0,0 +1,75 @@ +package com.gempukku.lotro.cards.set18.men; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.RemoveTwilightEffect; +import com.gempukku.lotro.cards.effects.SelfExertEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndRemoveCultureTokensFromCardEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Race; +import com.gempukku.lotro.common.Token; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.actions.ActivateCardAction; +import com.gempukku.lotro.logic.effects.AddTwilightEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.LinkedList; +import java.util.List; + +/** + * Set: Treachery & Deceit + * Side: Shadow + * Culture: Men + * Twilight Cost: 2 + * Type: Minion • Man + * Strength: 4 + * Vitality: 3 + * Site: 4 + * Game Text: Regroup: Exert Grima to add (2). Regroup: Remove a [MEN] token to add (2). Regroup: Remove (4) to exert + * an unbound companion. + */ +public class Card18_067 extends AbstractMinion { + public Card18_067() { + super(2, 4, 3, 4, Race.MAN, Culture.MEN, "Grima", true); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)) { + List actions = new LinkedList(); + if (PlayConditions.canSelfExert(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.setText("Exert Grima to add (2)"); + action.appendCost( + new SelfExertEffect(self)); + action.appendEffect( + new AddTwilightEffect(self, 2)); + actions.add(action); + } + if (PlayConditions.canRemoveTokens(game, Token.MEN, 1, Filters.any)) { + ActivateCardAction action = new ActivateCardAction(self); + action.setText("Remove a MEN token to add (2)"); + action.appendCost( + new ChooseAndRemoveCultureTokensFromCardEffect(self, playerId, Token.MEN, 1, Filters.any)); + action.appendEffect( + new AddTwilightEffect(self, 2)); + actions.add(action); + } + if (game.getGameState().getTwilightPool() >= 4) { + ActivateCardAction action = new ActivateCardAction(self); + action.setText("Remove (4) to exert and unbound companion"); + action.appendCost( + new RemoveTwilightEffect(4)); + action.appendEffect( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.unboundCompanion)); + actions.add(action); + } + return actions; + } + return null; + } +}