"Palantir Chamber"
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
package com.gempukku.lotro.cards.set4.site;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractSite;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.RemoveBurdenEffect;
|
||||||
|
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.game.PhysicalCard;
|
||||||
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.logic.actions.ActivateCardAction;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Two Towers
|
||||||
|
* Twilight Cost: 9
|
||||||
|
* Type: Site
|
||||||
|
* Site: 9T
|
||||||
|
* Game Text: Shadow: Remove 2 burdens to play a minion from your discard pile.
|
||||||
|
*/
|
||||||
|
public class Card4_363 extends AbstractSite {
|
||||||
|
public Card4_363() {
|
||||||
|
super("Palantir Chamber", Block.TWO_TOWERS, 9, 9, Direction.LEFT);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseSiteDuringPhase(game.getGameState(), Phase.SHADOW, self)
|
||||||
|
&& game.getGameState().getBurdens() >= 2
|
||||||
|
&& PlayConditions.canPlayFromDiscard(playerId, game, CardType.MINION)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new RemoveBurdenEffect(self));
|
||||||
|
action.appendCost(
|
||||||
|
new RemoveBurdenEffect(self));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndPlayCardFromDiscardEffect(playerId, game.getGameState().getDiscard(playerId), CardType.MINION));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user