"Strike from the South"

This commit is contained in:
marcins78
2013-01-24 14:58:44 +00:00
parent a18b2e7dac
commit 6dad0e0226

View File

@@ -0,0 +1,38 @@
package com.gempukku.lotro.cards.set20.fallenRealms;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
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.effects.WoundCharactersEffect;
/**
* 5
* Strike from the South
* Fallen Realms Event • Skirmish
* Wound a companion skirmishing a Southron for each Free Peoples card that companion bears.
*/
public class Card20_145 extends AbstractEvent {
public Card20_145() {
super(Side.SHADOW, 5, Culture.FALLEN_REALMS, "Strike from the South", Phase.SKIRMISH);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
final PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseActiveCardEffect(self, playerId, "Choose a companion", CardType.COMPANION, Filters.inSkirmishAgainst(Keyword.SOUTHRON), Filters.canTakeWound) {
@Override
protected void cardSelected(LotroGame game, PhysicalCard card) {
int count = Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Side.FREE_PEOPLE, Filters.attachedTo(card));
for (int i=0; i< count; i++)
action.appendEffect(
new WoundCharactersEffect(self, card));
}
});
return action;
}
}