From c655fafc2bd905b8ca8d992ec442dc0e31890b3c Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 7 Feb 2012 14:28:49 +0000 Subject: [PATCH] "They Feel the Precious" --- .../lotro/cards/set15/wraith/Card15_183.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/wraith/Card15_183.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/wraith/Card15_183.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/wraith/Card15_183.java new file mode 100644 index 000000000..7698d182f --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/wraith/Card15_183.java @@ -0,0 +1,44 @@ +package com.gempukku.lotro.cards.set15.wraith; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPreventCardEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.actions.ActivateCardAction; +import com.gempukku.lotro.logic.effects.RemoveThreatsEffect; +import com.gempukku.lotro.logic.effects.WoundCharactersEffect; +import com.gempukku.lotro.logic.timing.Effect; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Hunters + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 2 + * Type: Condition • Support Area + * Game Text: Response: If a Nazgul is about to take a wound, remove a threat to prevent that wound. + */ +public class Card15_183 extends AbstractPermanent { + public Card15_183() { + super(Side.SHADOW, 2, CardType.CONDITION, Culture.WRAITH, Zone.SUPPORT, "They Feel the Precious"); + } + + @Override + public List getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) { + if (TriggerConditions.isGettingWounded(effect, game, Race.NAZGUL) + && PlayConditions.canRemoveThreat(game, self, 1)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new RemoveThreatsEffect(self, 1)); + action.appendEffect( + new ChooseAndPreventCardEffect(self, (WoundCharactersEffect) effect, playerId, "Choose a Nazgul", Race.NAZGUL)); + return Collections.singletonList(action); + } + return null; + } +}