diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_138.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_138.java new file mode 100644 index 000000000..10f6b2a8d --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_138.java @@ -0,0 +1,62 @@ +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.ChoiceEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Keyword; +import com.gempukku.lotro.common.Race; +import com.gempukku.lotro.common.Side; +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.timing.Effect; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; + +/** + * 2 + * Southron Nomad + * Fallen Realms Minion • Man + * 4 2 4 + * Southron. Ambush (1). + * When you play this minion, you may exert an unbound companion (or 2 Free Peoples men). + */ +public class Card20_138 extends AbstractMinion { + public Card20_138() { + super(2, 4, 2, 4, Race.MAN, Culture.FALLEN_REALMS, "Southron Nomad"); + addKeyword(Keyword.SOUTHRON); + addKeyword(Keyword.AMBUSH, 1); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.played(game, effectResult, self)) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + List possibleEffects = new LinkedList(); + possibleEffects.add( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.unboundCompanion) { + @Override + public String getText(LotroGame game) { + return "Exert an unbound companion"; + } + }); + possibleEffects.add( + new ChooseAndExertCharactersEffect(action, playerId, 2, 2, Side.FREE_PEOPLE, Race.MAN) { + @Override + public String getText(LotroGame game) { + return "Exert 2 Free Peoples men"; + } + }); + action.appendEffect( + new ChoiceEffect(action, playerId, possibleEffects)); + return Collections.singletonList(action); + } + return null; + } +}