From 571ed0041db54db5abe93485f59caa50888b1f81 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 29 Jan 2013 17:50:13 +0000 Subject: [PATCH] "Orthanc Shaman" --- .../cards/set20/isengard/Card20_211.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/isengard/Card20_211.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/isengard/Card20_211.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/isengard/Card20_211.java new file mode 100644 index 000000000..e6c66fe01 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/isengard/Card20_211.java @@ -0,0 +1,47 @@ +package com.gempukku.lotro.cards.set20.isengard; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.SelfExertEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPreventCardEffect; +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 + * Orthanc Shaman + * Isengard Minion • Orc + * 6 3 4 + * Lurker. + * Response: If an Uruk-hai is about to take a wound, exert this minion to prevent that wound. + */ +public class Card20_211 extends AbstractMinion { + public Card20_211() { + super(3, 6, 3, 4, Race.ORC, Culture.ISENGARD, "Orthanc Shaman"); + addKeyword(Keyword.LURKER); + } + + @Override + public List getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) { + if (TriggerConditions.isGettingWounded(effect, game, Race.URUK_HAI) + && PlayConditions.canSelfExert(self, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new SelfExertEffect(action, self)); + action.appendEffect( + new ChooseAndPreventCardEffect(self, (WoundCharactersEffect) effect, playerId, "Choose an Uruk-hai", Race.URUK_HAI)); + return Collections.singletonList(action); + } + return null; + } +}