"Hillman Tribe"

This commit is contained in:
marcins78
2013-01-03 15:00:24 +00:00
parent 5e3dde2bf5
commit 45e1a64e8f

View File

@@ -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<? extends Action> 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<? extends Action> 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;
}
}