From c4eb2270332e55d06c27458b110275a57a426d5b Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 23 Feb 2012 17:08:23 +0000 Subject: [PATCH] =?UTF-8?q?"=C3=9Alair=C3=AB=20Enqu=C3=ABa"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lotro/cards/set17/wraith/Card17_140.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/wraith/Card17_140.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/wraith/Card17_140.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/wraith/Card17_140.java new file mode 100644 index 000000000..57ff9fc01 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set17/wraith/Card17_140.java @@ -0,0 +1,67 @@ +package com.gempukku.lotro.cards.set17.wraith; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.SelfExertEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect; +import com.gempukku.lotro.common.*; +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.ActivateCardAction; +import com.gempukku.lotro.logic.actions.OptionalTriggerAction; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Rise of Saruman + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 6 + * Type: Minion • Nazgul + * Strength: 11 + * Vitality: 4 + * Site: 3 + * Game Text: Fierce. Each time the Free Peoples player heals a companion, you may add a burden. + * Maneuver: Exert Ulaire Enquea twice to discard a condition (or two conditions if you can spot 5 Free Peoples + * player's conditions). + */ +public class Card17_140 extends AbstractMinion { + public Card17_140() { + super(6, 11, 4, 3, Race.NAZGUL, Culture.WRAITH, "Úlairë Enquëa", true); + addKeyword(Keyword.FIERCE); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.forEachHealed(game, effectResult, CardType.COMPANION)) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendEffect( + new AddBurdenEffect(self, 1)); + return Collections.singletonList(action); + } + return null; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.MANEUVER, self, 0) + && PlayConditions.canSelfExert(self, 2, game)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new SelfExertEffect(self)); + action.appendCost( + new SelfExertEffect(self)); + int count = Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), 5, Side.FREE_PEOPLE, CardType.CONDITION) ? 2 : 1; + action.appendEffect( + new ChooseAndDiscardCardsFromPlayEffect(action, playerId, count, count, CardType.CONDITION)); + return Collections.singletonList(action); + } + return null; + } +}