This commit is contained in:
marcins78@gmail.com
2011-11-07 10:43:22 +00:00
parent 152c8d3367
commit 2b35086f80

View File

@@ -0,0 +1,48 @@
package com.gempukku.lotro.cards.set7.rohan;
import com.gempukku.lotro.cards.AbstractAlly;
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: Free
* Culture: Rohan
* Twilight Cost: 1
* Type: Ally • Home 3T • Man
* Strength: 4
* Vitality: 2
* Site: 3T
* Game Text: Villager. Fellowship: If you have initiative, discard 2 cards from hand to heal a [ROHAN] Man.
*/
public class Card7_239 extends AbstractAlly {
public Card7_239() {
super(1, Block.TWO_TOWERS, 3, 4, 2, Race.MAN, Culture.ROHAN, "Leowyn", true);
addKeyword(Keyword.VILLAGER);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.hasInitiative(game, Side.FREE_PEOPLE)
&& 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, Culture.ROHAN, Race.MAN));
return Collections.singletonList(action);
}
return null;
}
}