Merge pull request #1781 from spjspj/master

spjspj - 'Use first Mana ability' fixes
This commit is contained in:
spjspj 2016-04-05 21:48:01 +10:00
commit 705daab22f
2 changed files with 6 additions and 5 deletions

View file

@ -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);

View file

@ -1256,9 +1256,10 @@ public class HumanPlayer extends PlayerImpl {
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())) {