From a709ab9a39c396b60856881b76268e914d250a89 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sun, 6 Nov 2011 17:39:44 +0000 Subject: [PATCH] "Stronghold of Minas Morgul" --- .../lotro/cards/set7/wraith/Card7_206.java | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/wraith/Card7_206.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/wraith/Card7_206.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/wraith/Card7_206.java new file mode 100644 index 000000000..59d853e65 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/wraith/Card7_206.java @@ -0,0 +1,59 @@ +package com.gempukku.lotro.cards.set7.wraith; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.AddTokenEffect; +import com.gempukku.lotro.cards.effects.CheckLimitEffect; +import com.gempukku.lotro.cards.effects.ExhaustCharacterEffect; +import com.gempukku.lotro.common.*; +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.DiscardCardsFromPlayEffect; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Return of the King + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 1 + * Type: Condition • Support Area + * Game Text: Response: If your [WRAITH] minion wins a skirmish, place a [WRAITH] token here (limit 1 per site). + * Regroup: Spot 3 [WRAITH] tokens here to exhaust the Ring-bearer. Discard this condition. + */ +public class Card7_206 extends AbstractPermanent { + public Card7_206() { + super(Side.SHADOW, 1, CardType.CONDITION, Culture.WRAITH, Zone.SUPPORT, "Stronghold of Minas Morgul", true); + } + + @Override + public List getOptionalInPlayAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (PlayConditions.winsSkirmish(game, effectResult, Filters.owner(playerId), Culture.WRAITH, CardType.MINION)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendEffect( + new CheckLimitEffect(action, self, 1, Phase.REGROUP, + new AddTokenEffect(self, self, Token.WRAITH))); + return Collections.singletonList(action); + } + return null; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0) + && PlayConditions.canSpot(game, self, Filters.hasToken(Token.WRAITH, 3))) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendEffect( + new ExhaustCharacterEffect(self, action, Keyword.RING_BEARER)); + action.appendEffect( + new DiscardCardsFromPlayEffect(self, self)); + return Collections.singletonList(action); + } + return null; + } +}