"Pelennor Prairie"

This commit is contained in:
marcins78@gmail.com
2011-11-17 21:19:09 +00:00
parent 3320764bcd
commit c92512ac77
3 changed files with 52 additions and 2 deletions

View File

@@ -20,6 +20,6 @@ public class CantBeOverwhelmedModifier extends AbstractModifier {
@Override
public int getOverwhelmMultiplier(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard physicalCard) {
return Integer.MAX_VALUE;
return 10000;
}
}

View File

@@ -26,7 +26,6 @@ import java.util.List;
public class Card10_117 extends AbstractSite {
public Card10_117() {
super("Base of Mindolluin", Block.KING, 3, 0, Direction.RIGHT);
addKeyword(Keyword.SANCTUARY);
}
@Override

View File

@@ -0,0 +1,51 @@
package com.gempukku.lotro.cards.set10.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.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
import com.gempukku.lotro.common.Block;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.filters.Filters;
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: Mount Doom
* Twilight Cost: 3
* Type: Site
* Site: 4K
* Game Text: Plains. Shadow: Exert a minion and remove a burden to make the Free Peoples player discard one of his
* or her conditions.
*/
public class Card10_118 extends AbstractSite {
public Card10_118() {
super("Pelennor Prairie", Block.KING, 4, 3, Direction.RIGHT);
addKeyword(Keyword.PLAINS);
}
@Override
public List<? extends Action> getPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseSiteDuringPhase(game, Phase.SHADOW, self)
&& PlayConditions.canExert(self, game, CardType.MINION)
&& PlayConditions.canRemoveBurdens(game, self, 1)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, CardType.MINION));
action.appendCost(
new RemoveBurdenEffect(self));
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, CardType.CONDITION, Filters.owner(game.getGameState().getCurrentPlayerId())));
return Collections.singletonList(action);
}
return null;
}
}