"Confronting the Eye"

This commit is contained in:
marcins78@gmail.com
2011-12-12 10:40:59 +00:00
parent 6f8ac44562
commit 8dc41593c1

View File

@@ -0,0 +1,48 @@
package com.gempukku.lotro.cards.set12.gondor;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilStartOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.CheckLimitEffect;
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.actions.ActivateCardAction;
import com.gempukku.lotro.logic.effects.AddTwilightEffect;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: Black Rider
* Side: Free
* Culture: Gondor
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: Fellowship: Spot a [GONDOR] Man and add (2) to make each unbound companion strength +1 until the regroup
* phase (limit +1).
*/
public class Card12_045 extends AbstractPermanent {
public Card12_045() {
super(Side.FREE_PEOPLE, 1, CardType.CONDITION, Culture.GONDOR, Zone.SUPPORT, "Confronting the Eye");
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.canSpot(game, Culture.GONDOR, Race.MAN)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new AddTwilightEffect(self, 2));
action.appendEffect(
new CheckLimitEffect(action, self, 1,
new AddUntilStartOfPhaseModifierEffect(
new StrengthModifier(self, Filters.unboundCompanion, 1), Phase.REGROUP)));
return Collections.singletonList(action);
}
return null;
}
}