forked from External/mage
* UI: improved choose number dialog (fixed enter key, added more info colorized info for mana distribute dialog);
This commit is contained in:
parent
9647083f60
commit
83a3de9a93
4 changed files with 134 additions and 55 deletions
|
|
@ -94,10 +94,12 @@ public class AddManaInAnyCombinationEffect extends ManaEffect {
|
|||
if (player != null) {
|
||||
Mana mana = new Mana();
|
||||
int amountOfManaLeft = amount.calculate(game, source, this);
|
||||
int maxAmount = amountOfManaLeft;
|
||||
|
||||
while (amountOfManaLeft > 0 && player.canRespond()) {
|
||||
for (ColoredManaSymbol coloredManaSymbol : manaSymbols) {
|
||||
int number = player.getAmount(0, amountOfManaLeft, "How many " + coloredManaSymbol.getColorName() + " mana?", game);
|
||||
int number = player.getAmount(0, amountOfManaLeft, "Distribute mana by color (done " + mana.count()
|
||||
+ " of " + maxAmount + "). How many mana add to <b>" + coloredManaSymbol.getColorHtmlName() + "</b> (enter 0 for pass to next color)?", game);
|
||||
if (number > 0) {
|
||||
for (int i = 0; i < number; i++) {
|
||||
mana.add(new Mana(coloredManaSymbol));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue