"Tower of Barad-dur"

This commit is contained in:
marcins78
2013-02-21 12:15:10 +00:00
parent 3d1c175f40
commit b309184ece

View File

@@ -3,9 +3,11 @@ package com.gempukku.lotro.cards.set20.site;
import com.gempukku.lotro.cards.AbstractSite;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ChoiceEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDeckEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect;
import com.gempukku.lotro.common.Block;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
@@ -21,7 +23,8 @@ import java.util.List;
/**
* Tower of Barad-dur
* 9 9
* Shadow: Play The Great Eye from your draw deck or discard pile; its twilight cost is -2.
* Shadow: Play The Great Eye from your draw deck or discard pile to make the Free Peoples player exert a companion
* for each threat you can spot.
*/
public class Card20_469 extends AbstractSite {
public Card20_469() {
@@ -34,21 +37,24 @@ public class Card20_469 extends AbstractSite {
ActivateCardAction action = new ActivateCardAction(self);
List<Effect> possibleEffects = new LinkedList<Effect>();
possibleEffects.add(
new ChooseAndPlayCardFromDeckEffect(playerId, -2, Filters.name("The Great Eye")) {
new ChooseAndPlayCardFromDeckEffect(playerId, Filters.name("The Great Eye")) {
@Override
public String getText(LotroGame game) {
return "Play The Great Eye from your draw deck";
}
});
possibleEffects.add(
new ChooseAndPlayCardFromDiscardEffect(playerId, game, -2, Filters.name("The Great Eye")) {
new ChooseAndPlayCardFromDiscardEffect(playerId, game, Filters.name("The Great Eye")) {
@Override
public String getText(LotroGame game) {
return "Play The Great Eye from your discard";
}
});
action.appendEffect(
action.appendCost(
new ChoiceEffect(action, playerId, possibleEffects));
action.appendEffect(
new ChooseAndExertCharactersEffect(action, game.getGameState().getCurrentPlayerId(),
game.getGameState().getThreats(), game.getGameState().getThreats(), CardType.COMPANION));
return Collections.singletonList(action);
}
return null;