Fix to 10R112 "Nine-fingered Frodo and the Ring of Doom"

Can now remove one threat if and only if there are no burdens and not two threats
This commit is contained in:
PhallenCassidy
2018-09-12 11:16:03 -04:00
committed by GitHub
parent 7e2dc152ca
commit d91efbae5c

View File

@@ -47,13 +47,18 @@ public class Card10_112 extends AbstractEvent {
List<Effect> possibleEffects = new LinkedList<Effect>(); List<Effect> possibleEffects = new LinkedList<Effect>();
possibleEffects.add( possibleEffects.add(
new RemoveBurdenEffect(playerId, self)); new RemoveBurdenEffect(playerId, self));
possibleEffects.add( if (game.getGameState().getThreats() > 1) {
new RemoveThreatsEffect(self, 2) { possibleEffects.add(
@Override new RemoveThreatsEffect(self, 2) {
public String getText(LotroGame game) { @Override
return "Remove 2 threats"; public String getText(LotroGame game) {
} return "Remove 2 threats";
}); }
});
} else if (game.getGameState().getBurdens() == 0) {
possibleEffects.add(
new RemoveThreatsEffect(self, 1));
}
action.appendEffect( action.appendEffect(
new ChoiceEffect(action, playerId, possibleEffects)); new ChoiceEffect(action, playerId, possibleEffects));
return action; return action;