"Gate Soldier"

This commit is contained in:
marcins78@gmail.com
2011-10-19 13:57:25 +00:00
parent 2dd8cad8ab
commit 3cb3531bad

View File

@@ -0,0 +1,52 @@
package com.gempukku.lotro.cards.set5.rohan;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Race;
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.OptionalTriggerAction;
import com.gempukku.lotro.logic.effects.DrawCardEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: Battle of Helm's Deep
* Side: Shadow
* Culture: Sauron
* Twilight Cost: 2
* Type: Minion • Orc
* Strength: 7
* Vitality: 2
* Site: 6
* Game Text: When you play a [SAURON] condition, you may exert this minion and remove (2) to draw a card.
*/
public class Card5_097 extends AbstractMinion {
public Card5_097() {
super(2, 7, 2, 6, Race.ORC, Culture.SAURON, "Gate Soldier");
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (PlayConditions.played(game, effectResult, Filters.owner(playerId), Culture.SAURON, CardType.CONDITION)
&& PlayConditions.canSelfExert(self, game)
&& game.getGameState().getTwilightPool() >= 2) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendCost(
new RemoveTwilightEffect(2));
action.appendEffect(
new DrawCardEffect(playerId, 1));
return Collections.singletonList(action);
}
return null;
}
}