"Southron Veterans"

This commit is contained in:
marcins78@gmail.com
2011-10-13 15:00:12 +00:00
parent 05ac60a2a1
commit a392edafc8
2 changed files with 53 additions and 5 deletions

View File

@@ -4,10 +4,7 @@ import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.cards.effects.PreventableEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
@@ -47,7 +44,8 @@ public class Card4_256 extends AbstractMinion {
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canSpot(game, 7, Filters.type(CardType.COMPANION))
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.ASSIGNMENT, self, 0)
&& PlayConditions.canSpot(game, 7, Filters.type(CardType.COMPANION))
&& PlayConditions.canCardAssignToSkirmish(self, game, self)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(

View File

@@ -0,0 +1,50 @@
package com.gempukku.lotro.cards.set4.raider;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ChooseAndExertCharactersEffect;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
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.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Shadow
* Culture: Raider
* Twilight Cost: 5
* Type: Minion • Man
* Strength: 10
* Vitality: 3
* Site: 4
* Game Text: Southron. Ambush (1). Maneuver: Exert this minion and spot 6 companions to make the Free Peoples player
* exert 2 companions.
*/
public class Card4_257 extends AbstractMinion {
public Card4_257() {
super(5, 10, 3, 4, Race.MAN, Culture.RAIDER, "Southron Veterans");
addKeyword(Keyword.SOUTHRON);
addKeyword(Keyword.AMBUSH, 1);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.MANEUVER, self, 0)
&& PlayConditions.canExert(self, game, Filters.sameCard(self))
&& PlayConditions.canSpot(game, 6, Filters.type(CardType.COMPANION))) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new ChooseAndExertCharactersEffect(action, game.getGameState().getCurrentPlayerId(), 2, 2, Filters.type(CardType.COMPANION)));
return Collections.singletonList(action);
}
return null;
}
}