"Easterling Aggressor"

This commit is contained in:
marcins78@gmail.com
2011-11-03 10:52:45 +00:00
parent cd8ee536c6
commit e58e43b799

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set7.raider;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromHandEffect;
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.effects.ChooseAndHealCharactersEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Raider
* Twilight Cost: 3
* Type: Minion • Man
* Strength: 8
* Vitality: 2
* Site: 4
* Game Text: Easterling. Skirmish: If you have initiative or you spot 3 Easterlings, discard 2 cards from hand
* to heal another Easterling.
*/
public class Card7_139 extends AbstractMinion {
public Card7_139() {
super(3, 8, 2, 4, Race.MAN, Culture.RAIDER, "Easterling Aggressor");
addKeyword(Keyword.EASTERLING);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self, 0)
&& (PlayConditions.hasInitiative(game, Side.SHADOW) || PlayConditions.canSpot(game, 3, Keyword.EASTERLING))
&& PlayConditions.canDiscardFromHand(game, playerId, 2, Filters.any)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, Filters.not(self), Keyword.EASTERLING));
return Collections.singletonList(action);
}
return null;
}
}