diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_108.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_108.java new file mode 100644 index 000000000..f470e4789 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set5/rohan/Card5_108.java @@ -0,0 +1,62 @@ +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.cards.modifiers.MinionSiteNumberModifier; +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.OptionalTriggerAction; +import com.gempukku.lotro.logic.effects.DrawCardEffect; +import com.gempukku.lotro.logic.modifiers.Modifier; +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: 6 + * Vitality: 2 + * Site: 6 + * Game Text: Tracker. The site number of each [SAURON] Orc is -1. When you play this minion, you may exert him + * and remove (2) to draw a card. + */ +public class Card5_108 extends AbstractMinion { + public Card5_108() { + super(2, 6, 2, 6, Race.ORC, Culture.SAURON, "Orc Pursuer"); + addKeyword(Keyword.TRACKER); + } + + @Override + public List getAlwaysOnModifiers(LotroGame game, PhysicalCard self) { + return Collections.singletonList( + new MinionSiteNumberModifier(self, Filters.and(Culture.SAURON, Race.ORC), null, -1)); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (PlayConditions.played(game, effectResult, self) + && 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; + } +}