GUI: Autochoose targets if choice can be made (#9206)

This commit is contained in:
Alex Vasile 2022-07-08 21:58:42 -04:00 committed by GitHub
parent 1e01efd49d
commit 96f6fbefc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 492 additions and 213 deletions

View file

@ -1382,8 +1382,8 @@ public final class GamePanel extends javax.swing.JPanel {
}
List<UUID> needChosen;
if (lastGameData.options != null && lastGameData.options.containsKey("chosen")) {
needChosen = (List<UUID>) lastGameData.options.get("chosen");
if (lastGameData.options != null && lastGameData.options.containsKey("chosenTargets")) {
needChosen = (List<UUID>) lastGameData.options.get("chosenTargets");
} else {
needChosen = new ArrayList<>();
}