GUI, game: added source info in choose mode dialogs

This commit is contained in:
Oleg Agafonov 2025-02-08 02:04:37 +04:00
parent 0612431ab2
commit c54fcde72a

View file

@ -13,6 +13,7 @@ import mage.constants.Outcome;
import mage.game.Game; import mage.game.Game;
import mage.game.permanent.Permanent; import mage.game.permanent.Permanent;
import mage.players.Player; import mage.players.Player;
import mage.util.CardUtil;
/** /**
* @author LevelX2 * @author LevelX2
@ -49,7 +50,7 @@ public class ChooseModeEffect extends OneShotEffect {
} }
if (controller != null && sourcePermanent != null) { if (controller != null && sourcePermanent != null) {
Choice choice = new ChoiceImpl(true); Choice choice = new ChoiceImpl(true);
choice.setMessage(choiceMessage); choice.setMessage(choiceMessage + CardUtil.getSourceLogName(game, source));
choice.getChoices().addAll(modes); choice.getChoices().addAll(modes);
if (controller.choose(Outcome.Neutral, choice, game)) { if (controller.choose(Outcome.Neutral, choice, game)) {
if (!game.isSimulation()) { if (!game.isSimulation()) {