diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_136.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_136.java new file mode 100644 index 000000000..e3d97bb1c --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_136.java @@ -0,0 +1,49 @@ +package com.gempukku.lotro.cards.set20.fallenRealms; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.RemoveTwilightEffect; +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.actions.ActivateCardAction; +import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * 3 + * Southron Bandit + * Fallen Realms Minion • Man + * 8 1 4 + * Southron. + * Regroup: Remove (5) to discard a Free Peoples possession (or all free people's possessions if you can spot 6 companions). + */ +public class Card20_136 extends AbstractMinion { + public Card20_136() { + super(3, 8, 1, 4, Race.MAN, Culture.FALLEN_REALMS, "Southron Bandit"); + addKeyword(Keyword.SOUTHRON); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 5)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new RemoveTwilightEffect(5)); + boolean all = Filters.countSpottable(game.getGameState(), game.getModifiersQuerying(), CardType.COMPANION)>=6; + if (all) + action.appendEffect( + new DiscardCardsFromPlayEffect(self, Side.FREE_PEOPLE, CardType.POSSESSION)); + else + action.appendEffect( + new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Side.FREE_PEOPLE, CardType.POSSESSION)); + return Collections.singletonList(action); + } + return null; + } +}