mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
GUI, game: added source info in choose mode dialogs
This commit is contained in:
parent
0612431ab2
commit
c54fcde72a
1 changed files with 2 additions and 1 deletions
|
|
@ -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()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue