"Isengard Tender"

This commit is contained in:
marcins78@gmail.com
2011-10-21 11:31:41 +00:00
parent f627dcd10a
commit 1d90dbbb19

View File

@@ -0,0 +1,58 @@
package com.gempukku.lotro.cards.set6.isengard;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.DiscardStackedCardsEffect;
import com.gempukku.lotro.cards.effects.ExhaustCharacterEffect;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.common.CardType;
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;
/**
* Set: Ents of Fangorn
* Side: Shadow
* Culture: Isengard
* Twilight Cost: 1
* Type: Minion • Orc
* Strength: 5
* Vitality: 2
* Site: 4
* Game Text: Regroup: If stacked on an [ISENGARD] card, discard this card and remove (2) to exhaust a companion.
*/
public class Card6_070 extends AbstractMinion {
public Card6_070() {
super(1, 5, 2, 4, Race.ORC, Culture.ISENGARD, "Isengard Tender");
}
@Override
public List<? extends Action> getPhaseActionsFromStacked(final String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseStackedShadowCardDuringPhase(game.getGameState(), Phase.REGROUP, self, 2)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new DiscardStackedCardsEffect(self, self));
action.appendCost(
new RemoveTwilightEffect(2));
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose companion", CardType.COMPANION, Filters.canExert(self)) {
@Override
protected void cardSelected(LotroGame game, PhysicalCard card) {
action.insertEffect(
new ExhaustCharacterEffect(playerId, action, card));
}
});
return Collections.singletonList(action);
}
return null;
}
}