"Trample"

This commit is contained in:
marcins78@gmail.com
2011-10-22 16:41:50 +00:00
parent 123015fb42
commit ce17a54ec0
2 changed files with 50 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
package com.gempukku.lotro.cards.set6.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.PreventableEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
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.AddTwilightEffect;
/**
* Set: Ents of Fangorn
* Side: Shadow
* Culture: Raider
* Twilight Cost: 0
* Type: Event
* Game Text: Maneuver: Spot a mounted [RAIDER] Man to discard a companion (except the Ring-bearer). The Free Peoples
* player may add (4) to prevent this.
*/
public class Card6_082 extends AbstractEvent {
public Card6_082() {
super(Side.SHADOW, 0, Culture.RAIDER, "Trample", Phase.MANEUVER);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Culture.RAIDER, Race.MAN, Filters.mounted);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new PreventableEffect(action,
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.COMPANION, Filters.not(Keyword.RING_BEARER)) {
@Override
public String getText(LotroGame game) {
return "Discard a companion (except the Ring-bearer)";
}
},
game.getGameState().getCurrentPlayerId(),
new AddTwilightEffect(self, 4)));
return action;
}
}

View File

@@ -25,7 +25,7 @@ public class AddTwilightEffect extends AbstractEffect implements Preventable {
@Override
public String getText(LotroGame game) {
return null;
return "Add (4)";
}
@Override