"Damrod"
This commit is contained in:
@@ -0,0 +1,59 @@
|
|||||||
|
package com.gempukku.lotro.cards.set4.gondor;
|
||||||
|
|
||||||
|
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.ExhaustCharacterEffect;
|
||||||
|
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.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.ChooseActiveCardEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Two Towers
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Gondor
|
||||||
|
* Twilight Cost: 2
|
||||||
|
* Type: Companion • Man
|
||||||
|
* Strength: 6
|
||||||
|
* Vitality: 3
|
||||||
|
* Resistance: 6
|
||||||
|
* Game Text: Ring-bound. Ranger.
|
||||||
|
* To play, spot a Ring-bound Man. Skirmish: Exert Damrod to exhaust a Man he is skirmishing.
|
||||||
|
*/
|
||||||
|
public class Card4_114 extends AbstractCompanion {
|
||||||
|
public Card4_114() {
|
||||||
|
super(2, 6, 3, Culture.GONDOR, Race.MAN, null, "Damrod", true);
|
||||||
|
addKeyword(Keyword.RING_BOUND);
|
||||||
|
addKeyword(Keyword.RANGER);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<? extends Action> getExtraInPlayPhaseActions(final String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)
|
||||||
|
&& PlayConditions.canExert(self, game.getGameState(), game.getModifiersQuerying(), self)) {
|
||||||
|
final ActivateCardAction action = new ActivateCardAction(self, Keyword.SKIRMISH);
|
||||||
|
action.appendCost(
|
||||||
|
new ExertCharactersEffect(self, self));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseActiveCardEffect(self, playerId, "Choose a Man", Filters.inSkirmishAgainst(Filters.sameCard(self)), Filters.canExert(self)) {
|
||||||
|
@Override
|
||||||
|
protected void cardSelected(PhysicalCard card) {
|
||||||
|
action.insertEffect(
|
||||||
|
new ExhaustCharacterEffect(playerId, action, card));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user