"Dunharrow Plateau"
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user