diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set8/wraith/Card8_067.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set8/wraith/Card8_067.java new file mode 100644 index 000000000..ccbf8b718 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set8/wraith/Card8_067.java @@ -0,0 +1,48 @@ +package com.gempukku.lotro.cards.set8.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.ChooseAndAssignCharacterToMinionEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +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: Siege of Gondor + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 4 + * Type: Event • Assignment + * Game Text: Exert an enduring [WRAITH] minion twice to assign that minion to an unbound companion. + */ +public class Card8_067 extends AbstractEvent { + public Card8_067() { + super(Side.SHADOW, 4, Culture.WRAITH, "Between Nazgul and Prey", Phase.ASSIGNMENT); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier, ignoreRoamingPenalty) + && PlayConditions.canExert(self, game, 2, Culture.WRAITH, CardType.MINION, Keyword.ENDURING); + } + + @Override + public PlayEventAction getPlayCardAction(final String playerId, final LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + final PlayEventAction action = new PlayEventAction(self); + + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, Culture.WRAITH, CardType.MINION, Keyword.ENDURING) { + @Override + protected void forEachCardExertedCallback(PhysicalCard character) { + if (Filters.canBeAssignedToSkirmishByEffect(Side.SHADOW).accepts(game.getGameState(), game.getModifiersQuerying(), character)) + action.appendEffect( + new ChooseAndAssignCharacterToMinionEffect(action, playerId, character, Filters.unboundCompanion)); + } + }); + + return action; + } +}