From f16cdf8a234e7c52fec3c5270db05b7a8f86137d Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 8 Mar 2012 16:23:45 +0000 Subject: [PATCH] "Cleaved" --- .../cards/set18/uruk_hai/Card18_114.java | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/uruk_hai/Card18_114.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/uruk_hai/Card18_114.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/uruk_hai/Card18_114.java new file mode 100644 index 000000000..2cbcc133d --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/uruk_hai/Card18_114.java @@ -0,0 +1,74 @@ +package com.gempukku.lotro.cards.set18.uruk_hai; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.TransferPermanentEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.VitalityModifier; +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.effects.ChooseActiveCardEffect; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: Treachery & Deceit + * Side: Shadow + * Culture: Uruk-Hai + * Twilight Cost: 2 + * Type: Condition • Support Area + * Vitality: -1 + * Game Text: Regroup: Exert an [URUK-HAI] hunter twice to transfer this condition from your support area to an unbound + * companion. Archery: Spot an [URUK-HAI] minion to transfer this condition from your support area to a Free Peoples + * archer. + */ +public class Card18_114 extends AbstractPermanent { + public Card18_114() { + super(Side.SHADOW, 2, CardType.CONDITION, Culture.URUK_HAI, Zone.SUPPORT, "Cleaved"); + } + + @Override + public Modifier getAlwaysOnModifier(PhysicalCard self) { + return new VitalityModifier(self, Filters.hasAttached(self), -1); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0) + && self.getZone() == Zone.SUPPORT + && PlayConditions.canExert(self, game, 2, Culture.URUK_HAI, Keyword.HUNTER)) { + final ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Culture.URUK_HAI, Keyword.HUNTER)); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose an unbound companion", Filters.unboundCompanion) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + action.appendEffect( + new TransferPermanentEffect(self, card)); + } + }); + return Collections.singletonList(action); + } + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ARCHERY, self, 0) + && PlayConditions.canSpot(game, Culture.URUK_HAI, CardType.MINION)) { + final ActivateCardAction action = new ActivateCardAction(self); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose a Free Peoples archer", Side.FREE_PEOPLE, Keyword.ARCHER) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + action.appendEffect( + new TransferPermanentEffect(self, card)); + } + }); + return Collections.singletonList(action); + } + return null; + } +}