This commit is contained in:
marcins78@gmail.com
2012-02-16 07:40:50 +00:00
parent e08b546cba
commit 089f878e77

View File

@@ -0,0 +1,61 @@
package com.gempukku.lotro.cards.set17.rohan;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfTurnModifierEffect;
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.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.modifiers.KeywordModifier;
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: Rohan
* Twilight Cost: 3
* Type: Companion • Man
* Strength: 7
* Vitality: 3
* Resistance: 7
* Game Text: Damage +1. While the Ringbearer is assigned to a skirmish, Eomer is strength +3. Maneuver: If Eomer
* is mounted, exert him to make him defender +1 until the end of turn.
*/
public class Card17_095 extends AbstractCompanion {
public Card17_095() {
super(3, 7, 3, 7, Culture.ROHAN, Race.MAN, null, "Eomer", true);
addKeyword(Keyword.DAMAGE, 1);
}
@Override
public Modifier getAlwaysOnModifier(PhysicalCard self) {
return new StrengthModifier(self, self, new SpotCondition(Filters.ringBearer, Filters.assignedToSkirmish), 3);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.MANEUVER, self)
&& PlayConditions.canSpot(game, self, Filters.mounted)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new AddUntilEndOfTurnModifierEffect(
new KeywordModifier(self, self, Keyword.DEFENDER)));
return Collections.singletonList(action);
}
return null;
}
}