From 73d7a3c44dc9f0bccb2587f7327cfc868c6aa727 Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 19 Mar 2013 09:50:05 +0000 Subject: [PATCH] 20_138 --- .../src/main/web/js/gemp-019/set20.js | 2 +- .../cards/set20/fallenRealms/Card20_138.java | 36 +++++-------------- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js index ae23541aa..8d1c5c7d4 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js @@ -136,7 +136,7 @@ var set20 = { '20_135': 'http://lotrtcg.org/coreset/fallenrealms/resolveofrhun(r1).png', '20_136': 'http://lotrtcg.org/coreset/fallenrealms/southronbandit.png', '20_137': 'http://lotrtcg.org/coreset/fallenrealms/southrondeadeye(r1).png', - '20_138': 'http://lotrtcg.org/coreset/fallenrealms/southronnomad.png', + '20_138': 'http://lotrtcg.org/coreset/fallenrealms/southronnomad(r1).png', '20_139': 'http://lotrtcg.org/coreset/fallenrealms/southronpackmaster.png', '20_140': 'http://lotrtcg.org/coreset/fallenrealms/southronrogue.png', '20_141': 'http://lotrtcg.org/coreset/fallenrealms/southronsharpshooter.png', 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 index 10f6b2a8d..8bce6741a 100644 --- 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 @@ -2,59 +2,41 @@ 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.actions.RequiredTriggerAction; 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 + * Minion • Man + * 5 2 4 * Southron. Ambush (1). - * When you play this minion, you may exert an unbound companion (or 2 Free Peoples men). + * When you play this minion, the Free Peoples player must exert an unbound companion. + * http://lotrtcg.org/coreset/fallenrealms/southronnomad(r1).png */ public class Card20_138 extends AbstractMinion { public Card20_138() { - super(2, 4, 2, 4, Race.MAN, Culture.FALLEN_REALMS, "Southron Nomad"); + super(2, 5, 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) { + public List getRequiredAfterTriggers(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"; - } - }); + RequiredTriggerAction action = new RequiredTriggerAction(self); action.appendEffect( - new ChoiceEffect(action, playerId, possibleEffects)); + new ChooseAndExertCharactersEffect(action, game.getGameState().getCurrentPlayerId(), 1, 1, Filters.unboundCompanion)); return Collections.singletonList(action); } return null;