mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge pull request #1781 from spjspj/master
spjspj - 'Use first Mana ability' fixes
This commit is contained in:
commit
705daab22f
2 changed files with 6 additions and 5 deletions
|
@ -596,7 +596,7 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
setMenuStates(
|
||||
PreferencesDialog.getCachedValue(KEY_GAME_MANA_AUTOPAYMENT, "true").equals("true"),
|
||||
PreferencesDialog.getCachedValue(KEY_GAME_MANA_AUTOPAYMENT_ONLY_ONE, "true").equals("true"),
|
||||
PreferencesDialog.getCachedValue(PreferencesDialog.KEY_USE_FIRST_MANA_ABILITY, "true").equals("true")
|
||||
false
|
||||
);
|
||||
|
||||
updateGame(game);
|
||||
|
|
|
@ -1255,10 +1255,11 @@ public class HumanPlayer extends PlayerImpl {
|
|||
if (ability instanceof ManaAbility) {
|
||||
activateAbility(ability, game);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(abilities.values()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(abilities.values()));
|
||||
|
||||
waitForResponse(game);
|
||||
if (response.getUUID() != null && isInGame()) {
|
||||
if (abilities.containsKey(response.getUUID())) {
|
||||
|
|
Loading…
Reference in a new issue