forked from External/mage
GUI: improved choose X or number dialog (added source ability and card hint support, added limits info);
game: choose X - added source ability info to game logs;
This commit is contained in:
parent
d97b034711
commit
d4a1e27a44
5 changed files with 124 additions and 99 deletions
|
|
@ -401,7 +401,8 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
if (variableManaCost != null) {
|
||||
int xValue = getManaCostsToPay().getX();
|
||||
game.informPlayers(controller.getLogName() + " announces a value of " + xValue + " for " + variableManaCost.getText());
|
||||
game.informPlayers(controller.getLogName() + " announces a value of " + xValue + " for " + variableManaCost.getText()
|
||||
+ CardUtil.getSourceLogName(game, this));
|
||||
}
|
||||
activated = true;
|
||||
return true;
|
||||
|
|
@ -516,7 +517,8 @@ public abstract class AbilityImpl implements Ability {
|
|||
// - Spells with additional costs that include X won't be affected by Unbound Flourishing. X must be in the spell's mana cost.
|
||||
variableCost.setAmount(xValue, xValue, false);
|
||||
((Cost) variableCost).setPaid();
|
||||
String message = controller.getLogName() + " announces a value of " + xValue + " (" + variableCost.getActionText() + ')';
|
||||
String message = controller.getLogName() + " announces a value of " + xValue + " (" + variableCost.getActionText() + ')'
|
||||
+ CardUtil.getSourceLogName(game, this);
|
||||
announceString.append(message);
|
||||
setCostsTag("X",xValue);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue