From 893cfd5a626c1c72d38f8384eb0bfccb31224c97 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Fri, 9 Mar 2012 11:50:44 +0000 Subject: [PATCH] "Pit Troll" --- .../lotro/cards/set19/orc/Card19_022.java | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/orc/Card19_022.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/orc/Card19_022.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/orc/Card19_022.java new file mode 100644 index 000000000..da5a6bb63 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set19/orc/Card19_022.java @@ -0,0 +1,66 @@ +package com.gempukku.lotro.cards.set19.orc; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.ExertCharactersEffect; +import com.gempukku.lotro.cards.effects.PreventableEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Race; +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.RequiredTriggerAction; +import com.gempukku.lotro.logic.actions.SubAction; +import com.gempukku.lotro.logic.effects.AddThreatsEffect; +import com.gempukku.lotro.logic.timing.Effect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Ages End + * Side: Shadow + * Culture: Orc + * Twilight Cost: 7 + * Type: Minion • Troll + * Strength: 13 + * Vitality: 4 + * Site: 4 + * Game Text: Hunter 2. (While skirmishing a non-hunter character, this character is strength +2.) + * To play, spot an [ORC] Orc. When you play this minion, add 2 threats. The Free Peoples player may exert + * the Ring-bearer to prevent this. + */ +public class Card19_022 extends AbstractMinion { + public Card19_022() { + super(7, 13, 4, 4, Race.TROLL, Culture.ORC, "Pit Troll"); + addKeyword(Keyword.HUNTER, 2); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { + return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile) + && PlayConditions.canSpot(game, Culture.ORC, Race.ORC) + } + + @Override + public List getRequiredAfterTriggers(final LotroGame game, EffectResult effectResult, final PhysicalCard self) { + if (TriggerConditions.played(game, effectResult, self)) { + RequiredTriggerAction action = new RequiredTriggerAction(self); + action.appendEffect( + new PreventableEffect(action, + new AddThreatsEffect(self.getOwner(), self, 2), game.getGameState().getCurrentPlayerId(), + new PreventableEffect.PreventionCost() { + @Override + public Effect createPreventionCostForPlayer(SubAction subAction, String playerId) { + final PhysicalCard ringBearer = Filters.findFirstActive(game.getGameState(), game.getModifiersQuerying(), Filters.ringBearer); + return new ExertCharactersEffect(self, ringBearer); + } + })); + return Collections.singletonList(action); + } + return null; + } +}