mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
UI: choose dialog improves (see 8add25fa12
)
This commit is contained in:
parent
7ca6677b93
commit
f67c08ad8b
1 changed files with 2 additions and 2 deletions
|
@ -1973,6 +1973,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
case SPLIT_AFTERMATH:
|
||||
MageObject object = game.getObject(ability.getSourceId());
|
||||
if (object != null) {
|
||||
String message = "Choose ability to cast" + (noMana ? " for FREE" : "") + "<br>" + object.getLogName();
|
||||
LinkedHashMap<UUID, ActivatedAbility> useableAbilities = getSpellAbilities(playerId, object, game.getState().getZone(object.getId()), game);
|
||||
if (useableAbilities != null
|
||||
&& useableAbilities.size() == 1) {
|
||||
|
@ -1983,7 +1984,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
updateGameStatePriority("chooseSpellAbilityForCast", game);
|
||||
prepareForResponse(game);
|
||||
if (!isExecutingMacro()) {
|
||||
game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(useableAbilities.values()));
|
||||
game.fireGetChoiceEvent(playerId, message, object, new ArrayList<>(useableAbilities.values()));
|
||||
}
|
||||
waitForResponse(game);
|
||||
|
||||
|
@ -2014,7 +2015,6 @@ public class HumanPlayer extends PlayerImpl {
|
|||
MageObject object = game.getObject(card.getId());
|
||||
if (object != null) {
|
||||
String message = "Choose ability to cast" + (nonMana ? " for FREE" : "") + "<br>" + object.getLogName();
|
||||
|
||||
LinkedHashMap<UUID, ActivatedAbility> useableAbilities = getSpellAbilities(playerId, object, game.getState().getZone(object.getId()), game);
|
||||
if (useableAbilities != null
|
||||
&& useableAbilities.size() == 1) {
|
||||
|
|
Loading…
Reference in a new issue