"Caradhras Has Not Forgiven Us"
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
package com.gempukku.lotro.cards.set1.isengard;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractLotroCardBlueprint;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.actions.PlayEventAction;
|
||||||
|
import com.gempukku.lotro.cards.effects.ExertCharacterEffect;
|
||||||
|
import com.gempukku.lotro.common.*;
|
||||||
|
import com.gempukku.lotro.filters.Filters;
|
||||||
|
import com.gempukku.lotro.game.PhysicalCard;
|
||||||
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.effects.DiscardCardFromPlayEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Fellowship of the Ring
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Isengard
|
||||||
|
* Twilight Cost: 3
|
||||||
|
* Type: Event
|
||||||
|
* Game Text: Spell. Weather. Maneuver: Exert a [ISENGARD] minion and spot 5 companions to discard an exhausted
|
||||||
|
* companion (except the Ring-bearer).
|
||||||
|
*/
|
||||||
|
public class Card1_123 extends AbstractLotroCardBlueprint {
|
||||||
|
public Card1_123() {
|
||||||
|
super(Side.SHADOW, CardType.EVENT, Culture.ISENGARD, "Caradhras Has Not Forgiven Us", "1_123");
|
||||||
|
addKeyword(Keyword.WEATHER);
|
||||||
|
addKeyword(Keyword.SPELL);
|
||||||
|
addKeyword(Keyword.MANEUVER);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getTwilightCost() {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<? extends Action> getPlayablePhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canPlayShadowCardDuringPhase(game.getGameState(), game.getModifiersQuerying(), Phase.MANEUVER, self)
|
||||||
|
&& Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.culture(Culture.ISENGARD), Filters.type(CardType.MINION), Filters.canExert())
|
||||||
|
&& Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Filters.type(CardType.COMPANION)) >= 5) {
|
||||||
|
final PlayEventAction action = new PlayEventAction(self);
|
||||||
|
action.addCost(
|
||||||
|
new ChooseActiveCardEffect(playerId, "Choose an ISENGARD minion", Filters.culture(Culture.ISENGARD), Filters.type(CardType.MINION), Filters.canExert()) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(LotroGame game, PhysicalCard isengardMinion) {
|
||||||
|
action.addCost(new ExertCharacterEffect(isengardMinion));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
action.addEffect(
|
||||||
|
new ChooseActiveCardEffect(playerId, "Choose non Ring-bearer exhausted companion", Filters.type(CardType.COMPANION), Filters.not(Filters.keyword(Keyword.RING_BEARER)), Filters.not(Filters.canExert())) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(LotroGame game, PhysicalCard exhaustedCompanion) {
|
||||||
|
action.addEffect(new DiscardCardFromPlayEffect(exhaustedCompanion));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ public enum Keyword {
|
|||||||
|
|
||||||
ROAMING("Roaming"),
|
ROAMING("Roaming"),
|
||||||
|
|
||||||
WEATHER("Weather"), TALE("Tale"),
|
WEATHER("Weather"), TALE("Tale"), SPELL("Spell"),
|
||||||
|
|
||||||
RIVER("River"), PLAINS("Plains"), UNDERGROUND("Underground"),
|
RIVER("River"), PLAINS("Plains"), UNDERGROUND("Underground"),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user