"Barrows of Edoras"
This commit is contained in:
@@ -0,0 +1,44 @@
|
|||||||
|
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.PutCardFromHandOnBottomOfDeckEffect;
|
||||||
|
import com.gempukku.lotro.common.Block;
|
||||||
|
import com.gempukku.lotro.common.Keyword;
|
||||||
|
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.effects.DrawCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Two Towers
|
||||||
|
* Twilight Cost: 0
|
||||||
|
* Type: Site
|
||||||
|
* Site: 3T
|
||||||
|
* Game Text: Sanctuary. Fellowship: Place your hand beneath your draw deck and draw 4 cards.
|
||||||
|
*/
|
||||||
|
public class Card4_337 extends AbstractSite {
|
||||||
|
public Card4_337() {
|
||||||
|
super("Barrows of Edoras", Block.TWO_TOWERS, 3, 0, Direction.RIGHT);
|
||||||
|
addKeyword(Keyword.SANCTUARY);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseSiteDuringPhase(game.getGameState(), Phase.FELLOWSHIP, self)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
for (PhysicalCard card : game.getGameState().getHand(playerId))
|
||||||
|
action.appendCost(
|
||||||
|
new PutCardFromHandOnBottomOfDeckEffect(card));
|
||||||
|
action.appendEffect(
|
||||||
|
new DrawCardEffect(playerId, 4));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user