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>();
possibleEffects.add(
new RemoveBurdenEffect(playerId, self));
possibleEffects.add(
new RemoveThreatsEffect(self, 2) {
@Override
public String getText(LotroGame game) {
return "Remove 2 threats";
}
});
if (game.getGameState().getThreats() > 1) {
possibleEffects.add(
new RemoveThreatsEffect(self, 2) {
@Override
public String getText(LotroGame game) {
return "Remove 2 threats";
}
});
} else if (game.getGameState().getBurdens() == 0) {
possibleEffects.add(
new RemoveThreatsEffect(self, 1));
}
action.appendEffect(
new ChoiceEffect(action, playerId, possibleEffects));
return action;