From 45e1a64e8f741cbe025a68cc111a5e71e24c95e8 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Thu, 3 Jan 2013 15:00:24 +0000 Subject: [PATCH] "Hillman Tribe" --- .../lotro/cards/set20/dunland/Card20_015.java | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_015.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_015.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_015.java new file mode 100644 index 000000000..9835c858e --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/dunland/Card20_015.java @@ -0,0 +1,60 @@ +package com.gempukku.lotro.cards.set20.dunland; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.StackCardFromPlayEffect; +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.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * 3 + * Hillman Tribe + * Dunland Minion • Man + * 9 1 3 + * Shadow: If stacked on a site you control, play Hillman Tribe; its twilight cost is -1. + * Regroup: Spot Saruman or another [Dunland] Man to stack Hillman Tribe on a site you control. + */ +public class Card20_015 extends AbstractMinion { + public Card20_015() { + super(3, 9, 1, 3, Race.MAN, Culture.DUNLAND, "Hillman Tribe"); + } + + @Override + public List getPhaseActionsFromStacked(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseStackedShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.stackedOn(self, game, Filters.siteControlled(self.getOwner())) + && checkPlayRequirements(playerId, game, self, 0, -1, false, false)) { + return Collections.singletonList(getPlayCardAction(playerId, game, self, -1, false)); + } + return null; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0) + && PlayConditions.canSpot(game, Filters.or(Filters.saruman, Filters.and(Filters.not(self), Culture.DUNLAND, Race.MAN))) + && PlayConditions.controllsSite(game, playerId)) { + final ActivateCardAction action = new ActivateCardAction(self); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose site you control", Filters.siteControlled(playerId)) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + action.appendEffect( + new StackCardFromPlayEffect(self, card)); + } + }); + return Collections.singletonList(action); + } + return null; + } +}