- "Bilbo", "Bearer of Things Burgled" and any card that allows a choice of adding twilight now correctly displays

the effect text.
This commit is contained in:
marcins78
2013-03-05 13:31:58 +00:00
parent 53c2e2231c
commit 3806e8911e
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,8 @@
<pre style="font-size:80%">
<b>5 Mar. 2013</b>
- "Bilbo", "Bearer of Things Burgled" and any card that allows a choice of adding twilight now correctly displays
the effect text.
<b>4 Mar. 2013</b>
- "Elrond", "Herald to Gil-galad" now gives an option, on how many times you wish to heal that ally.
- "So Polite" now counts the threats when it resolves.

View File

@@ -36,7 +36,7 @@ public class AddTwilightEffect extends AbstractEffect implements Preventable {
@Override
public String getText(LotroGame game) {
return "Add (" + _twilight + ")";
return "Add (" + getTwilightToAdd(game) + ")";
}
@Override
@@ -62,11 +62,15 @@ public class AddTwilightEffect extends AbstractEffect implements Preventable {
@Override
protected FullEffectResult playEffectReturningResult(LotroGame game) {
if (!isPrevented(game)) {
int count = _twilight.evaluateExpression(game.getGameState(), game.getModifiersQuerying(), null);
int count = getTwilightToAdd(game);
game.getGameState().sendMessage(_sourceText + " added " + count + " twilight");
game.getGameState().addTwilight(count);
return new FullEffectResult(true);
}
return new FullEffectResult(false);
}
private int getTwilightToAdd(LotroGame game) {
return _twilight.evaluateExpression(game.getGameState(), game.getModifiersQuerying(), null);
}
}