From 4b45530455653caab14a106fa634b1e68b72bbd2 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Fri, 4 Nov 2011 11:35:36 +0000 Subject: [PATCH] "Surging Up" --- .../lotro/cards/set7/raider/Card7_169.java | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_169.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_169.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_169.java new file mode 100644 index 000000000..a5a04e789 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_169.java @@ -0,0 +1,59 @@ +package com.gempukku.lotro.cards.set7.raider; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.AddUntilEndOfTurnModifierEffect; +import com.gempukku.lotro.cards.effects.ExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.MoveLimitModifier; +import com.gempukku.lotro.common.*; +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.ChooseAndHealCharactersEffect; +import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Return of the King + * Side: Shadow + * Culture: Raider + * Twilight Cost: 1 + * Type: Condition • Support Area + * Game Text: Regroup: Exert an Easterling and discard this condition to make the move limit -1 for this turn. + * The Free Peoples player may add 2 burdens to prevent this. Skirmish: Discard this condition to heal an Easterling. + */ +public class Card7_169 extends AbstractPermanent { + public Card7_169() { + super(Side.SHADOW, 1, CardType.CONDITION, Culture.RAIDER, Zone.SUPPORT, "Surging Up"); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.REGROUP, self, 0) + && PlayConditions.canExert(self, game, Keyword.EASTERLING) + && PlayConditions.canSelfDiscard(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ExertCharactersEffect(self, self)); + action.appendCost( + new DiscardCardsFromPlayEffect(self, self)); + action.appendEffect( + new AddUntilEndOfTurnModifierEffect( + new MoveLimitModifier(self, -1))); + return Collections.singletonList(action); + } + if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self, 0) + && PlayConditions.canSelfDiscard(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new DiscardCardsFromPlayEffect(self, self)); + action.appendEffect( + new ChooseAndHealCharactersEffect(action, playerId, Keyword.EASTERLING)); + return Collections.singletonList(action); + } + return null; + } +}