From e6cd29fa5cdd264f986818649fab79e50269a716 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Thu, 24 Jan 2013 14:51:51 +0000 Subject: [PATCH] "Southron Traveler" --- .../cards/set20/fallenRealms/Card20_143.java | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_143.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_143.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_143.java new file mode 100644 index 000000000..8378a7176 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_143.java @@ -0,0 +1,47 @@ +package com.gempukku.lotro.cards.set20.fallenRealms; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.RemoveTwilightEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndPreventCardEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Race; +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.effects.WoundCharactersEffect; +import com.gempukku.lotro.logic.timing.Effect; + +import java.util.Collections; +import java.util.List; + +/** + * 3 + * Southron Traveler + * Fallen Realms Minion • Man + * 8 1 4 + * Southron. Ambush (2). + * Response: If a Southron is about to take a wound, remove 3 to prevent that wound + */ +public class Card20_143 extends AbstractMinion { + public Card20_143() { + super(3, 8, 1, 4, Race.MAN, Culture.FALLEN_REALMS, "Southron Traveler"); + addKeyword(Keyword.SOUTHRON); + addKeyword(Keyword.AMBUSH, 2); + } + + @Override + public List getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) { + if (TriggerConditions.isGettingWounded(effect, game, Keyword.SOUTHRON) + && game.getGameState().getTwilightPool()>=3) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new RemoveTwilightEffect(3)); + action.appendEffect( + new ChooseAndPreventCardEffect(self, (WoundCharactersEffect) effect, playerId, "Choose Southron to prevent wound to", Keyword.SOUTHRON)); + return Collections.singletonList(action); + } + return null; + } +}