Fixed - "Threatening Warg"

This commit is contained in:
marcin.sciesinski
2017-11-11 14:41:37 -08:00
parent 6381d669bb
commit e08331a28d

View File

@@ -59,34 +59,34 @@ public class Card31_026 extends AbstractAttachable {
protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) { protected Filterable getValidTargetFilter(String playerId, LotroGame game, PhysicalCard self) {
return Keyword.WARG_RIDER; return Keyword.WARG_RIDER;
} }
@Override @Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, self, 0) if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.ASSIGNMENT, self, 0)
&& (PlayConditions.canExert(self, game, 2, self.getAttachedTo()) && (PlayConditions.canExert(self, game, 2, self.getAttachedTo())
|| game.getGameState().getBurdens() >= 2)) { || game.getGameState().getBurdens() >= 2)) {
ActivateCardAction action = new ActivateCardAction(self); ActivateCardAction action = new ActivateCardAction(self);
List<Effect> possibleCosts = new LinkedList<Effect>(); List<Effect> possibleCosts = new LinkedList<Effect>();
possibleCosts.add( possibleCosts.add(
new SelfExertEffect(action, self.getAttachedTo()) { new ChooseAndExertCharactersEffect(action, playerId, 1, 1, 2, self.getAttachedTo()) {
@Override @Override
public String getText(LotroGame game) { public String getText(LotroGame game) {
return "Exert bearer twice"; return "Exert bearer twice";
} }
}); });
possibleCosts.add( possibleCosts.add(
new RemoveBurdenEffect(playerId, self, 2) { new RemoveBurdenEffect(playerId, self, 2) {
@Override @Override
public String getText(LotroGame game) { public String getText(LotroGame game) {
return "Remove two doubts"; return "Remove two doubts";
} }
}); });
action.appendCost( action.appendCost(
new ChoiceEffect(action, playerId, possibleCosts)); new ChoiceEffect(action, playerId, possibleCosts));
action.appendEffect( action.appendEffect(
new ChooseAndAssignCharacterToMinionEffect(action, playerId, self.getAttachedTo(), Filters.name("Thorin"))); new ChooseAndAssignCharacterToMinionEffect(action, playerId, self.getAttachedTo(), Filters.name("Thorin")));
return Collections.singletonList(action); return Collections.singletonList(action);
} }
return null; return null;
} }
} }