From 396b67fee820c926b36a3e6fab6ed9d6c1688e92 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 29 Jan 2013 16:17:54 +0000 Subject: [PATCH] "Faramir", "Noble Guide" --- .../lotro/cards/set20/gondor/Card20_191.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/gondor/Card20_191.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/gondor/Card20_191.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/gondor/Card20_191.java new file mode 100644 index 000000000..bbc9a3242 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/gondor/Card20_191.java @@ -0,0 +1,48 @@ +package com.gempukku.lotro.cards.set20.gondor; + +import com.gempukku.lotro.cards.AbstractCompanion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.PreventCardEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Race; +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.WoundCharactersEffect; +import com.gempukku.lotro.logic.timing.Effect; + +import java.util.Collections; +import java.util.List; + +/** + * 3 + * •Faramir, Noble Guide + * Gondor Companion • Man + * 7 3 7 + * Ring-bound. Ranger. + * Response: If Faramir is about to take a wound, exert a ring-bound Hobbit to prevent that wound. + */ +public class Card20_191 extends AbstractCompanion { + public Card20_191() { + super(3, 7, 3, 7, Culture.GONDOR, Race.MAN, null, "Faramir", "Noble Guide", true); + addKeyword(Keyword.RING_BOUND); + addKeyword(Keyword.RANGER); + } + + @Override + public List getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) { + if (TriggerConditions.isGettingWounded(effect, game, self) + && PlayConditions.canExert(self, game, Race.HOBBIT, Keyword.RING_BOUND)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, Keyword.RING_BOUND)); + action.appendEffect( + new PreventCardEffect((WoundCharactersEffect) effect, self)); + return Collections.singletonList(action); + } + return null; + } +}