"Elven Guardian"

This commit is contained in:
marcins78@gmail.com
2012-02-09 22:17:11 +00:00
parent 60b6932fc9
commit 2b43514f1c

View File

@@ -0,0 +1,55 @@
package com.gempukku.lotro.cards.set17.elven;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
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.modifiers.Modifier;
import com.gempukku.lotro.logic.modifiers.SpotCondition;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import java.util.Collections;
import java.util.List;
/**
* Set: Rise of Saruman
* Side: Free
* Culture: Elven
* Twilight Cost: 2
* Type: Companion • Elf
* Strength: 6
* Vitality: 3
* Resistance: 6
* Game Text: Hunter 1 (While skirmishing a non-hunter character, this character is strength +1.) While this companion
* is skirmishing a wounded minion, he is strength +2. Maneuver: Exert this companion to heal another hunter.
*/
public class Card17_007 extends AbstractCompanion {
public Card17_007() {
super(2, 6, 3, 6, Culture.ELVEN, Race.ELF, null, "Elven Guardian");
addKeyword(Keyword.HUNTER, 1);
}
@Override
public Modifier getAlwaysOnModifier(PhysicalCard self) {
return new StrengthModifier(self, self, new SpotCondition(self, Filters.inSkirmishAgainst(CardType.MINION, Filters.wounded)), 2);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.MANEUVER, self)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, Filters.not(self), Keyword.HUNTER));
return Collections.singletonList(action);
}
return null;
}
}