From 3cb3531baddedd545862c55d4106f95417ca2692 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 19 Oct 2011 13:57:25 +0000 Subject: [PATCH] "Gate Soldier" --- .../lotro/cards/set5/rohan/Card5_097.java | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_097.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_097.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_097.java new file mode 100644 index 000000000..4537d9bee --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_097.java @@ -0,0 +1,52 @@ +package com.gempukku.lotro.cards.set5.rohan; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ExertCharactersEffect; +import com.gempukku.lotro.cards.effects.RemoveTwilightEffect; +import com.gempukku.lotro.common.CardType; +import com.gempukku.lotro.common.Culture; +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.OptionalTriggerAction; +import com.gempukku.lotro.logic.effects.DrawCardEffect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Battle of Helm's Deep + * Side: Shadow + * Culture: Sauron + * Twilight Cost: 2 + * Type: Minion • Orc + * Strength: 7 + * Vitality: 2 + * Site: 6 + * Game Text: When you play a [SAURON] condition, you may exert this minion and remove (2) to draw a card. + */ +public class Card5_097 extends AbstractMinion { + public Card5_097() { + super(2, 7, 2, 6, Race.ORC, Culture.SAURON, "Gate Soldier"); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (PlayConditions.played(game, effectResult, Filters.owner(playerId), Culture.SAURON, CardType.CONDITION) + && PlayConditions.canSelfExert(self, game) + && game.getGameState().getTwilightPool() >= 2) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendCost( + new ExertCharactersEffect(self, self)); + action.appendCost( + new RemoveTwilightEffect(2)); + action.appendEffect( + new DrawCardEffect(playerId, 1)); + return Collections.singletonList(action); + } + return null; + } +}