"Red Wrath"

This commit is contained in:
marcins78@gmail.com
2011-11-03 16:00:41 +00:00
parent 1504e6d577
commit af37103327

View File

@@ -0,0 +1,45 @@
package com.gempukku.lotro.cards.set7.raider;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
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.ChooseAndWoundCharactersEffect;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Raider
* Twilight Cost: 5
* Type: Event • Skirmish
* Game Text: Exert a [RAIDER] Man to wound a companion he is skirmishing twice.
*/
public class Card7_157 extends AbstractEvent {
public Card7_157() {
super(Side.SHADOW, 5, Culture.RAIDER, "Red Wrath", Phase.SKIRMISH);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canExert(self, game, Culture.RAIDER, Race.MAN);
}
@Override
public PlayEventAction getPlayCardAction(final String playerId, LotroGame game, final PhysicalCard self, int twilightModifier) {
final PlayEventAction action = new PlayEventAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Culture.RAIDER, Race.MAN) {
@Override
protected void forEachCardExertedCallback(PhysicalCard character) {
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, 2, CardType.COMPANION, Filters.inSkirmishAgainst(character)));
}
});
return action;
}
}