From 534e00e41fccf6c0749a37a3303cd75ad8fec8a8 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Wed, 27 Dec 2017 06:32:24 +0400 Subject: [PATCH] Updated choose color dialog: added mana value and ability source --- .../abilities/effects/common/AddManaOfAnyColorEffect.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyColorEffect.java b/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyColorEffect.java index bd9b5aacee5..52e3a0fb3bf 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyColorEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/AddManaOfAnyColorEffect.java @@ -69,11 +69,13 @@ public class AddManaOfAnyColorEffect extends BasicManaEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { - ChoiceColor choice = new ChoiceColor(true); + String mes = String.format("Select color of %d mana to add it to your mana pool", this.amount); + ChoiceColor choice = new ChoiceColor(true, mes, game.getObject(source.getSourceId())); if (controller.choose(outcome, choice, game)) { if (choice.getColor() == null) { - return false; // it happens, don't know how + // on user's reconnect choice dialog close and return null even with required settings + return false; } Mana createdMana = choice.getMana(amount); if (createdMana != null) {