- "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:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user