"Desert Lord"

This commit is contained in:
marcins78@gmail.com
2011-10-11 13:47:34 +00:00
parent 37e2976411
commit 6ade5f3fab

View File

@@ -0,0 +1,54 @@
package com.gempukku.lotro.cards.set4.raider;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.ChooseAndExertCharactersEffect;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.modifiers.DoesNotAddToArcheryTotalModifier;
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.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Shadow
* Culture: Raider
* Twilight Cost: 6
* Type: Minion • Man
* Strength: 11
* Vitality: 3
* Site: 4
* Game Text: Southron. Archer. Archery: Exert Desert Lord to exert a companion (except the Ring-bearer); Desert Lord
* does not add to the minion archery total.
*/
public class Card4_219 extends AbstractMinion {
public Card4_219() {
super(6, 11, 3, 4, Race.MAN, Culture.RAIDER, "Desert Lord", true);
addKeyword(Keyword.SOUTHRON);
addKeyword(Keyword.ARCHER);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.ARCHERY, self, 0)
&& PlayConditions.canExert(self, game, Filters.sameCard(self))) {
ActivateCardAction action = new ActivateCardAction(self, Keyword.ARCHERY);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.type(CardType.COMPANION), Filters.not(Filters.keyword(Keyword.RING_BEARER))));
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new DoesNotAddToArcheryTotalModifier(self, Filters.sameCard(self)), Phase.ARCHERY));
return Collections.singletonList(action);
}
return null;
}
}