"Southron Nomad"

This commit is contained in:
marcins78
2013-01-24 14:38:40 +00:00
parent 09258898b7
commit 6f6f04fdce

View File

@@ -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<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.played(game, effectResult, self)) {
OptionalTriggerAction action = new OptionalTriggerAction(self);
List<Effect> possibleEffects = new LinkedList<Effect>();
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;
}
}