From 797cbbc866d879d6e5069c89ca3b9c29cea0049b Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sat, 10 Sep 2011 21:12:03 +0000 Subject: [PATCH] "Orc Inquisitor" --- .../lotro/cards/set1/sauron/Card1_268.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/sauron/Card1_268.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/sauron/Card1_268.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/sauron/Card1_268.java new file mode 100644 index 000000000..d198261c0 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/sauron/Card1_268.java @@ -0,0 +1,44 @@ +package com.gempukku.lotro.cards.set1.sauron; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.DiscardCardAtRandomFromHandEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +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.DefaultCostToEffectAction; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Fellowship of the Ring + * Side: Shadow + * Culture: Sauron + * Twilight Cost: 3 + * Type: Minion • Orc + * Strength: 9 + * Vitality: 3 + * Site: 6 + * Game Text: When you play this minion, you may make the Free Peoples player discard a card at random from hand. + */ +public class Card1_268 extends AbstractMinion { + public Card1_268() { + super(3, 9, 3, 6, Keyword.ORC, Culture.SAURON, "Orc Inquisitor"); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (PlayConditions.played(game.getGameState(), game.getModifiersQuerying(), effectResult, Filters.sameCard(self))) { + DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, null, "Make the Free Peoples player discard a card at random from hand."); + action.addEffect( + new DiscardCardAtRandomFromHandEffect(game.getGameState().getCurrentPlayerId())); + return Collections.singletonList(action); + } + return null; + } +}