From 5e3dde2bf51eb213c0d4573f77e6867ae961d984 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Thu, 3 Jan 2013 12:52:04 +0000 Subject: [PATCH] "Clan of the Hills" --- .../lotro/cards/set20/dunland/Card20_014.java | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_014.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_014.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_014.java new file mode 100644 index 000000000..131ab6d17 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_014.java @@ -0,0 +1,73 @@ +package com.gempukku.lotro.cards.set20.dunland; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.StackCardFromPlayEffect; +import com.gempukku.lotro.cards.modifiers.ShouldSkipPhaseModifier; +import com.gempukku.lotro.cards.modifiers.conditions.LocationCondition; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Race; +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.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.modifiers.Modifier; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * 6 + * • Clan of the Hills + * Dunland Minion • Man + * 14 2 3 + * While Clan of the Hills is in region 2, skip the archery phase. + * Response: If Clan of the Hills wins a skirmish, stack a [Dunland] Man on a site you control to wound + * an unbound companion. + */ +public class Card20_014 extends AbstractMinion { + public Card20_014() { + super(6, 14, 2, 3, Race.MAN, Culture.DUNLAND, "Clan of the Hills", null, true); + } + + @Override + public List getAlwaysOnModifiers(LotroGame game, PhysicalCard self) { + List modifiers = new LinkedList(); + modifiers.add( + new ShouldSkipPhaseModifier(self, new LocationCondition(Filters.region(2)), Phase.ARCHERY)); + return modifiers; + } + + @Override + public List getOptionalInPlayAfterActions(final String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) { + if (TriggerConditions.winsSkirmish(game, effectResult, self) + && PlayConditions.canSpot(game, Culture.DUNLAND, Race.MAN) + && PlayConditions.canSpot(game, Filters.siteControlled(playerId))) { + final ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseActiveCardEffect(self, playerId, "Choose a minion to stack", Culture.DUNLAND, Race.MAN) { + @Override + protected void cardSelected(LotroGame game, final PhysicalCard minion) { + action.appendCost( + new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard site) { + action.appendCost( + new StackCardFromPlayEffect(minion, site)); + } + }); + } + }); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.unboundCompanion)); + return Collections.singletonList(action); + } + return null; + } +}