From e94a2afccb02f4dfd5897f71fc0e809eee5dd653 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 29 Sep 2011 23:56:09 +0000 Subject: [PATCH] "Stricken Dumb" --- .../lotro/cards/set2/wraith/Card2_080.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set2/wraith/Card2_080.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set2/wraith/Card2_080.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set2/wraith/Card2_080.java new file mode 100644 index 000000000..39db441a8 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set2/wraith/Card2_080.java @@ -0,0 +1,49 @@ +package com.gempukku.lotro.cards.set2.wraith; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.costs.ChooseAndExertCharactersCost; +import com.gempukku.lotro.cards.effects.ChooseAndDiscardCardsFromPlayEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Side; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; + +/** + * Set: Mines of Moria + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 2 + * Type: Event + * Game Text: Maneuver: Exert The Witch-king to discard a tale or weapon. + */ +public class Card2_080 extends AbstractEvent { + public Card2_080() { + super(Side.SHADOW, Culture.WRAITH, "Stricken Dumb", Phase.MANEUVER); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && PlayConditions.canExert(self, game.getGameState(), game.getModifiersQuerying(), Filters.name("The Witch-king")); + } + + @Override + public int getTwilightCost() { + return 2; + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new ChooseAndExertCharactersCost(action, playerId, 1, 1, Filters.name("The Witch-king"))); + action.appendEffect( + new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Filters.or(Filters.keyword(Keyword.TALE), Filters.keyword(Keyword.HAND_WEAPON), Filters.keyword(Keyword.RANGED_WEAPON)))); + return action; + } +}