summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-21 01:06:02 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit6bb0d1c97949a70de9543a699acb9976b905ee68 (patch)
tree3569e53487203b205341ed2f6363afb7b294dc5e /play.js
parent045624849a94e6875c29fed77784dcb043380ea3 (diff)
downloadnevsky-6bb0d1c97949a70de9543a699acb9976b905ee68.tar.gz
Battle aftermath.
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/play.js b/play.js
index 3779f25..9f74557 100644
--- a/play.js
+++ b/play.js
@@ -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")