"Dunharrow Plateau"

This commit is contained in:
marcins78@gmail.com
2011-11-10 22:12:55 +00:00
parent cd43b9632f
commit acb702f772
2 changed files with 43 additions and 0 deletions

View File

@@ -96,6 +96,10 @@ public class PlayConditions {
return (phase == null || gameState.getCurrentPhase() == phase) && (gameState.getCurrentSite() == self);
}
public static boolean canUseSiteDuringPhase(LotroGame game, Phase phase, PhysicalCard self) {
return canUseSiteDuringPhase(game.getGameState(), phase, self);
}
public static boolean stackedOn(PhysicalCard card, LotroGame game, Filterable... filters) {
return Filters.and(filters).accepts(game.getGameState(), game.getModifiersQuerying(), card.getStackedOn());
}

View File

@@ -0,0 +1,39 @@
package com.gempukku.lotro.cards.set7.site;
import com.gempukku.lotro.cards.AbstractSite;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.CheckLimitEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDeckEffect;
import com.gempukku.lotro.common.*;
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 Return of the King
* Type: Site
* Site: 1K
* Game Text: Fellowship: Spot a Dwarf to play a [DWARVEN] condition from your draw deck (limit once per turn).
*/
public class Card7_329 extends AbstractSite {
public Card7_329() {
super("Dunharrow Plateau", Block.KING, 1, 0, Direction.LEFT);
}
@Override
public List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseSiteDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.canSpot(game, Race.DWARF)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(
new CheckLimitEffect(action, self, 1, Phase.FELLOWSHIP,
new ChooseAndPlayCardFromDeckEffect(playerId, Culture.DWARVEN, CardType.CONDITION)));
return Collections.singletonList(action);
}
return null;
}
}