"Theoden"

This commit is contained in:
marcins78@gmail.com
2011-10-16 14:14:53 +00:00
parent d42b15bcc5
commit 08130ccdd1

View File

@@ -0,0 +1,47 @@
package com.gempukku.lotro.cards.set4.rohan;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.effects.LiberateASiteEffect;
import com.gempukku.lotro.common.*;
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.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Free
* Culture: Rohan
* Twilight Cost: 2
* Type: Companion • Man
* Strength: 6
* Vitality: 2
* Resistance: 6
* Signet: Aragorn
* Game Text: Regroup: Spot a [ROHAN] ally and exert Theoden to liberate a site.
*/
public class Card4_292 extends AbstractCompanion {
public Card4_292() {
super(2, 6, 2, Culture.ROHAN, Race.MAN, Signet.ARAGORN, "Theoden", true);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.REGROUP, self)
&& PlayConditions.canSelfExert(self, game)
&& PlayConditions.canSpot(game, Culture.ROHAN, CardType.ALLY)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new LiberateASiteEffect(self));
return Collections.singletonList(action);
}
return null;
}
}