diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-21 01:06:02 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 6bb0d1c97949a70de9543a699acb9976b905ee68 (patch) | |
tree | 3569e53487203b205341ed2f6363afb7b294dc5e /play.js | |
parent | 045624849a94e6875c29fed77784dcb043380ea3 (diff) | |
download | nevsky-6bb0d1c97949a70de9543a699acb9976b905ee68.tar.gz |
Battle aftermath.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -204,7 +204,7 @@ function is_legate_action() { } function is_legate_selected() { - return !!view.pieces.legate_selected + return player === "Teutons" && !!view.pieces.legate_selected } const force_type_count = 7 @@ -944,7 +944,7 @@ function is_lord_mat_selected(ix) { } function is_cylinder_selected(ix) { - if (view.who === undefined) + if (view.who === undefined && view.group === undefined) return ix === view.command return ix === view.who || !!(view.group && set_has(view.group, ix)) } @@ -1297,6 +1297,8 @@ function on_update() { action_button("march", "March") action_button("avoid", "Avoid battle") action_button("withdraw", "Withdraw") + action_button("retreat", "Retreat") + action_button("remove", "Remove") action_button("surrender", "Surrender") action_button("siegeworks", "Siegeworks") |