"Invigorated"

This commit is contained in:
marcins78@gmail.com
2011-12-12 11:05:26 +00:00
parent bf63a134d6
commit e4961c73a0

View File

@@ -0,0 +1,45 @@
package com.gempukku.lotro.cards.set12.gondor;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfDiscardEffect;
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: Black Rider
* Side: Free
* Culture: Gondor
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: Skirmish: Discard this condition to heal a [GONDOR] Man (or to heal 2 [GONDOR] Men if you can spot
* a roaming minion).
*/
public class Card12_051 extends AbstractPermanent {
public Card12_051() {
super(Side.FREE_PEOPLE, 1, CardType.CONDITION, Culture.GONDOR, Zone.SUPPORT, "Invigorated");
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
&& PlayConditions.canSelfDiscard(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfDiscardEffect(self));
int healCount = PlayConditions.canSpot(game, Filters.roamingMinion) ? 2 : 1;
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, healCount, healCount, Culture.GONDOR, Race.MAN));
return Collections.singletonList(action);
}
return null;
}
}