From 0d54271bc5faebbb874afcf24a996598eee68ff0 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Thu, 7 Feb 2013 13:03:41 +0000 Subject: [PATCH] "Gathering Evil" --- .../lotro/cards/set20/sauron/Card20_357.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/sauron/Card20_357.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/sauron/Card20_357.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/sauron/Card20_357.java new file mode 100644 index 000000000..daaeebe27 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/sauron/Card20_357.java @@ -0,0 +1,49 @@ +package com.gempukku.lotro.cards.set20.sauron; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.GameUtils; +import com.gempukku.lotro.logic.actions.ActivateCardAction; +import com.gempukku.lotro.logic.effects.RemoveThreatsEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * 2 + * Gathering Evil + * Sauron Condition • Support Area + * Shadow: Remove a threat and exert a [Sauron] Orc to play a [Sauron] minion from your discard pile; it's twilight + * cost is -1 for each Free Peoples culture less than 3 that you can spot. + */ +public class Card20_357 extends AbstractPermanent { + public Card20_357() { + super(Side.SHADOW, 2, CardType.CONDITION, Culture.SAURON, Zone.SUPPORT, "Gathering Evil"); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.canRemoveThreat(game, self, 1) + && PlayConditions.canExert(self, game, Culture.SAURON, Race.ORC) + && PlayConditions.canPlayFromDiscard(playerId, game, + Math.max(0, GameUtils.getSpottableFPCulturesCount(game.getGameState(), game.getModifiersQuerying(), playerId)-3), Culture.SAURON, CardType.MINION)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new RemoveThreatsEffect(self, 1)); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Culture.SAURON, Race.ORC)); + action.appendEffect( + new ChooseAndPlayCardFromDiscardEffect(playerId, game, Math.max(0, GameUtils.getSpottableFPCulturesCount(game.getGameState(), game.getModifiersQuerying(), playerId)-3), + Culture.SAURON, CardType.MINION)); + return Collections.singletonList(action); + } + return null; + } +}