"Fey He Seemed"

This commit is contained in:
marcins78
2013-02-06 13:14:45 +00:00
parent cc61285b03
commit 6b8445f284

View File

@@ -0,0 +1,41 @@
package com.gempukku.lotro.cards.set20.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.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.cards.modifiers.evaluator.CardMatchesEvaluator;
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.modifiers.KeywordModifier;
/**
* 1
* Fey He Seemed
* Rohan Event • Skirmish
* Make a [Rohan] Man strength +2 (or strength +3 and damage +1 if skirmishing a wounded minion).
*/
public class Card20_322 extends AbstractEvent {
public Card20_322() {
super(Side.FREE_PEOPLE, 1, Culture.ROHAN, "Fey He Seemed", Phase.SKIRMISH);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, final LotroGame game, final PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
final PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new CardMatchesEvaluator(2, 3, Filters.inSkirmishAgainst(CardType.MINION, Filters.wounded)), Culture.ROHAN, Race.MAN) {
@Override
protected void selectedCharacterCallback(PhysicalCard selectedCharacter) {
if (Filters.and(Filters.inSkirmishAgainst(CardType.MINION, Filters.wounded)).accepts(game.getGameState(), game.getModifiersQuerying(), selectedCharacter))
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new KeywordModifier(self, selectedCharacter, Keyword.DAMAGE, 1), Phase.SKIRMISH));
}
});
return action;
}
}