"Dark Approach"
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.gempukku.lotro.cards.set12.wraith;
|
||||
|
||||
import com.gempukku.lotro.cards.AbstractEvent;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.actions.PlayEventAction;
|
||||
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromHandEffect;
|
||||
import com.gempukku.lotro.common.*;
|
||||
import com.gempukku.lotro.filters.Filters;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
|
||||
/**
|
||||
* Set: Black Rider
|
||||
* Side: Shadow
|
||||
* Culture: Wraith
|
||||
* Twilight Cost: 0
|
||||
* Type: Event • Shadow
|
||||
* Game Text: Play a Nazgul. His twilight cost is -1 for each forest site you can spot (limit -4).
|
||||
*/
|
||||
public class Card12_162 extends AbstractEvent {
|
||||
public Card12_162() {
|
||||
super(Side.SHADOW, 0, Culture.WRAITH, "Dark Approach", Phase.SHADOW);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) {
|
||||
int modifier = Math.max(-4, -Filters.countSpottable(game.getGameState(), game.getModifiersQuerying(), CardType.SITE, Keyword.FOREST));
|
||||
return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
|
||||
&& PlayConditions.canPlayFromHand(playerId, game, modifier, Race.NAZGUL);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
int modifier = Math.max(-4, -Filters.countSpottable(game.getGameState(), game.getModifiersQuerying(), CardType.SITE, Keyword.FOREST));
|
||||
action.appendEffect(
|
||||
new ChooseAndPlayCardFromHandEffect(playerId, game, modifier, Race.NAZGUL));
|
||||
return action;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user