diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gandalf/Card7_043.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gandalf/Card7_043.java new file mode 100644 index 000000000..17c21d332 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gandalf/Card7_043.java @@ -0,0 +1,54 @@ +package com.gempukku.lotro.cards.set7.gandalf; + +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.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Side; +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.modifiers.StrengthModifier; + +/** + * Set: The Return of the King + * Side: Free + * Culture: Gandalf + * Twilight Cost: 3 + * Type: Event • Maneuver + * Game Text: Exert Gandalf three times (or twice if you have initiative) to make all unbound companions of one culture + * (except [GANDALF]) strength +3 until the regroup phase. + */ +public class Card7_043 extends AbstractEvent { + public Card7_043() { + super(Side.FREE_PEOPLE, 3, Culture.GANDALF, "Light the Beacons", Phase.MANEUVER); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && + (PlayConditions.canExert(self, game, 3, Filters.name("Gandalf")) + || (PlayConditions.hasInitiative(game, Side.FREE_PEOPLE) && PlayConditions.canExert(self, game, 2, Filters.name("Gandalf")))); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier) { + final PlayEventAction action = new PlayEventAction(self); + int exertCount = (game.getGameState().getInitiativeSide() == Side.FREE_PEOPLE) ? 2 : 3; + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, exertCount, Filters.name("Gandalf"))); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose companion whose culture should get the strength bonus", Filters.unboundCompanion, Filters.not(Culture.GANDALF)) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + game.getModifiersEnvironment().addUntilStartOfPhaseModifier( + new StrengthModifier(self, card.getBlueprint().getCulture(), 3), Phase.REGROUP); + } + }); + return action; + } +}