"Whisper in the Dark"

This commit is contained in:
marcins78@gmail.com
2012-03-07 15:42:01 +00:00
parent 8f4d9675d1
commit 2d031a387f

View File

@@ -0,0 +1,47 @@
package com.gempukku.lotro.cards.set18.men;
import com.gempukku.lotro.cards.AbstractAttachable;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
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;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: Treachery & Deceit
* Side: Shadow
* Culture: Men
* Twilight Cost: 0
* Type: Condition
* Game Text: Bearer must be a follower. At the start of the maneuver phase, if you can spot a [MEN] Man,
* the Free Peoples player must exert an unbound companion.
*/
public class Card18_077 extends AbstractAttachable {
public Card18_077() {
super(Side.SHADOW, CardType.CONDITION, 0, Culture.MEN, null, "Whisper in the Dark");
}
@Override
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return CardType.FOLLOWER;
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.startOfPhase(game, effectResult, Phase.MANEUVER)
&& PlayConditions.canSpot(game, Culture.MEN, Race.MAN)) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new ChooseAndExertCharactersEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, Filters.unboundCompanion));
return Collections.singletonList(action);
}
return null;
}
}