From f4b8fdb434a3c55c61571d0ed3601ef16ee391a9 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Sat, 10 Sep 2011 01:22:20 +0000 Subject: [PATCH] "Ulaire Nelya" --- .../lotro/cards/set1/wraith/Card1_233.java | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/wraith/Card1_233.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/wraith/Card1_233.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/wraith/Card1_233.java new file mode 100644 index 000000000..11f4034a3 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set1/wraith/Card1_233.java @@ -0,0 +1,58 @@ +package com.gempukku.lotro.cards.set1.wraith; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.ExertCharacterEffect; +import com.gempukku.lotro.cards.effects.PlaySiteEffect; +import com.gempukku.lotro.common.CardType; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Phase; +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.DefaultCostToEffectAction; +import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Fellowship of the Ring + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 5 + * Type: Minion • Nazgul + * Strength: 10 + * Vitality: 3 + * Site: 2 + * Game Text: Fierce. Shadow: Exert Ulaire Nelya and spot an opponent's site to replace it with your site of the same + * number. + */ +public class Card1_233 extends AbstractMinion { + public Card1_233() { + super(5, 10, 3, 2, Keyword.NAZGUL, Culture.WRAITH, "Ulaire Nelya", true); + addKeyword(Keyword.FIERCE); + } + + @Override + protected List getExtraPhaseActions(final String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.SHADOW, self, 0) + && PlayConditions.canExert(game.getGameState(), game.getModifiersQuerying(), self) + && Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.type(CardType.SITE), Filters.not(Filters.owner(playerId)))) { + final DefaultCostToEffectAction action = new DefaultCostToEffectAction(self, Keyword.SHADOW, "Exert Ulaire Nelya and spot an opponent's site to replace it with your site of the same number."); + action.addCost( + new ExertCharacterEffect(self)); + action.addEffect( + new ChooseActiveCardEffect(playerId, "Choose opponent's site", Filters.type(CardType.SITE), Filters.not(Filters.owner(playerId))) { + @Override + protected void cardSelected(PhysicalCard site) { + action.addEffect(new PlaySiteEffect(playerId, site.getBlueprint().getSiteNumber())); + } + }); + return Collections.singletonList(action); + } + return null; + } +}