"Desert Spearman"

This commit is contained in:
marcins78@gmail.com
2011-11-03 10:45:55 +00:00
parent e3f4a7cf04
commit 3599751350
2 changed files with 49 additions and 1 deletions

View File

@@ -46,5 +46,4 @@ public class Card7_136 extends AbstractMinion {
}
return null;
}
}

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set7.raider;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
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.actions.OptionalTriggerAction;
import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Raider
* Twilight Cost: 3
* Type: Minion • Man
* Strength: 8
* Vitality: 2
* Site: 4
* Game Text: Southron. At the start of each skirmish involving this minion, you may remove (3) to wound a companion
* or ally he is skirmishing.
*/
public class Card7_137 extends AbstractMinion {
public Card7_137() {
super(3, 8, 2, 4, Race.MAN, Culture.RAIDER, "Desert Spearman");
addKeyword(Keyword.SOUTHRON);
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (PlayConditions.startOfPhase(game, effectResult, Phase.SKIRMISH)
&& Filters.inSkirmish.accepts(game.getGameState(), game.getModifiersQuerying(), self)
&& game.getGameState().getTwilightPool() >= 3) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new RemoveTwilightEffect(3));
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, Filters.or(CardType.COMPANION, CardType.ALLY), Filters.inSkirmishAgainst(self)));
return Collections.singletonList(action);
}
return null;
}
}