From b1b62e41ef5809639ee73d9cbe5f7a6958ecb387 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 16 Feb 2012 02:57:23 +0000 Subject: [PATCH] "Grishnakh" --- .../lotro/cards/set17/orc/Card17_071.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/orc/Card17_071.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/orc/Card17_071.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/orc/Card17_071.java new file mode 100644 index 000000000..8b7f88728 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/orc/Card17_071.java @@ -0,0 +1,67 @@ +package com.gempukku.lotro.cards.set17.orc; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.SelfExertEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDeckEffect; +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.modifiers.KeywordModifier; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.modifiers.SpotCondition; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * Set: Rise of Saruman + * Side: Shadow + * Culture: Orc + * Twilight Cost: 4 + * Type: Minion • Orc + * Strength: 11 + * Vitality: 3 + * Site: 4 + * Game Text: Hunter 2. While you can spot an [URUK-HAI] minion, each [ORC] Orc gains hunter 1 (if that [URUK-HAI] + * minion is Ugluk, each [ORC] Orc gains an additional hunter 1). Shadow: Exert Grishnakh twice to play an [URUK-HAI] + * hunter minion from your draw deck. + */ +public class Card17_071 extends AbstractMinion { + public Card17_071() { + super(4, 11, 3, 4, Race.ORC, Culture.ORC, "Grishnakh", true); + addKeyword(Keyword.HUNTER, 2); + } + + @Override + public List getAlwaysOnModifiers(LotroGame game, PhysicalCard self) { + List modifiers = new LinkedList(); + modifiers.add( + new KeywordModifier(self, Filters.and(Culture.ORC, Race.ORC), + new SpotCondition(Culture.URUK_HAI, CardType.MINION), Keyword.HUNTER, 1)); + modifiers.add( + new KeywordModifier(self, Filters.and(Culture.ORC, Race.ORC), + new SpotCondition(Culture.URUK_HAI, CardType.MINION, Filters.name("Ugluk")), Keyword.HUNTER, 1)); + return modifiers; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.canSelfExert(self, 2, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new SelfExertEffect(self)); + action.appendCost( + new SelfExertEffect(self)); + action.appendEffect( + new ChooseAndPlayCardFromDeckEffect(playerId, Culture.URUK_HAI, CardType.MINION, Keyword.HUNTER)); + return Collections.singletonList(action); + } + return null; + } +}