From 6ec6b62aebd3f5b8d3c063fd1c950a56e4338c43 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 3 Nov 2011 17:55:49 +0000 Subject: [PATCH] "Southron Leader" --- .../lotro/cards/set7/raider/Card7_166.java | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_166.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_166.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_166.java new file mode 100644 index 000000000..91ef50da5 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/raider/Card7_166.java @@ -0,0 +1,69 @@ +package com.gempukku.lotro.cards.set7.raider; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ChoiceEffect; +import com.gempukku.lotro.cards.effects.ExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.evaluator.CountCulturesEvaluator; +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.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.effects.RemoveThreatsEffect; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.Effect; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * Set: The Return of the King + * Side: Shadow + * Culture: Raider + * Twilight Cost: 5 + * Type: Minion • Man + * Strength: 10 + * Vitality: 3 + * Site: 4 + * Game Text: Southron. Archery: Spot 4 Free Peoples cultures and either exert this minion or remove a threat to wound + * a companion (except the Ring-bearer). + */ +public class Card7_166 extends AbstractMinion { + public Card7_166() { + super(5, 10, 3, 4, Race.MAN, Culture.RAIDER, "Southron Leader"); + addKeyword(Keyword.SOUTHRON); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.ARCHERY, self, 0) + && new CountCulturesEvaluator(0, 0, Side.FREE_PEOPLE).evaluateExpression(game.getGameState(), game.getModifiersQuerying(), null) >= 4 + && (PlayConditions.canSelfExert(self, game) || PlayConditions.canRemoveThreat(game, self, 1))) { + ActivateCardAction action = new ActivateCardAction(self); + List possibleCosts = new LinkedList(); + possibleCosts.add( + new ExertCharactersEffect(self, self) { + @Override + public String getText(LotroGame game) { + return "Exert this minion"; + } + }); + possibleCosts.add( + new RemoveThreatsEffect(self, 1) { + @Override + public String getText(LotroGame game) { + return "Remove a threat"; + } + }); + action.appendCost( + new ChoiceEffect(action, playerId, possibleCosts)); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.COMPANION, Filters.not(Keyword.RING_BEARER))); + return Collections.singletonList(action); + } + return null; + } +}