"Fey He Seemed"

This commit is contained in:
marcins78@gmail.com
2011-11-06 23:43:28 +00:00
parent f9695deca2
commit 3b814ae2fb

View File

@@ -0,0 +1,47 @@
package com.gempukku.lotro.cards.set7.rohan;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
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.effects.ChooseActiveCardEffect;
import com.gempukku.lotro.logic.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
/**
* Set: The Return of the King
* Side: Free
* Culture: Rohan
* Twilight Cost: 1
* Type: Event • Skirmish
* Game Text: Make a [ROHAN] Man strength +2 (or +3 and damage +1 if skirmishing a wounded minion).
*/
public class Card7_231 extends AbstractEvent {
public Card7_231() {
super(Side.FREE_PEOPLE, 1, Culture.ROHAN, "Fey He Seemed", Phase.SKIRMISH);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier) {
final PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose a ROHAN Man", Culture.ROHAN, Race.MAN) {
@Override
protected void cardSelected(LotroGame game, PhysicalCard card) {
boolean againstWounded = Filters.inSkirmishAgainst(CardType.MINION, Filters.wounded).accepts(game.getGameState(), game.getModifiersQuerying(), card);
int bonus = againstWounded ? 3 : 2;
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new StrengthModifier(self, card, bonus), Phase.SKIRMISH));
if (againstWounded)
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new KeywordModifier(self, card, Keyword.DAMAGE, 1), Phase.SKIRMISH));
}
});
return action;
}
}