"Faramir"

This commit is contained in:
marcins78@gmail.com
2011-12-12 10:45:17 +00:00
parent afde818962
commit a8c2b82c91

View File

@@ -0,0 +1,51 @@
package com.gempukku.lotro.cards.set12.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
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.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import java.util.Collections;
import java.util.List;
/**
* Set: Black Rider
* Side: Free
* Culture: Gondor
* Twilight Cost: 3
* Type: Companion • Man
* Strength: 7
* Vitality: 3
* Resistance: 7
* Game Text: Ranger. Skirmish: Exert Faramir to make him strength +1 for each wound on the Ring-bearer.
*/
public class Card12_047 extends AbstractCompanion {
public Card12_047() {
super(3, 7, 3, 7, Culture.GONDOR, Race.MAN, null, "Faramir", true);
addKeyword(Keyword.RANGER);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
int wounds = game.getGameState().getWounds(game.getGameState().getRingBearer(playerId));
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new StrengthModifier(self, self, wounds), Phase.SKIRMISH));
return Collections.singletonList(action);
}
return null;
}
}