Fixing text of DrawCardsEffect

This commit is contained in:
Phallen Cassidy
2019-08-21 23:57:04 -04:00
parent 54de6b56d4
commit f7d62bccaa

View File

@@ -31,8 +31,9 @@ public class DrawCardsEffect extends AbstractSubActionEffect {
@Override
public String getText(LotroGame game) {
final boolean cardCount = _count.evaluateExpression(game, null) > 1;
return "Draw " + cardCount + " card" + (cardCount ? "s" : "");
final int cardCount = _count.evaluateExpression(game, null);
final boolean plural = _count.evaluateExpression(game, null) > 1;
return "Draw " + cardCount + " card" + (plural ? "s" : "");
}
@Override