"Gondorian Captain"

This commit is contained in:
marcins78@gmail.com
2011-11-02 16:06:26 +00:00
parent f9f21088e2
commit f7f6b503d3

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set7.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
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.RemoveThreatsEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Free
* Culture: Gondor
* Twilight Cost: 2
* Type: Companion • Man
* Strength: 6
* Vitality: 3
* Resistance: 6
* Game Text: Knight. Fellowship: Discard a fortification to remove a threat.
*/
public class Card7_097 extends AbstractCompanion {
public Card7_097() {
super(2, 6, 3, Culture.GONDOR, Race.MAN, null, "Gondorian Captain");
addKeyword(Keyword.KNIGHT);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.FELLOWSHIP, self)
&& PlayConditions.canDiscardFromPlay(self, game, Keyword.FORTIFICATION)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Keyword.FORTIFICATION));
action.appendEffect(
new RemoveThreatsEffect(self, 1));
return Collections.singletonList(action);
}
return null;
}
}