summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-30 15:16:34 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:18 +0100
commit7cdf8ecdcd78f85c3331a97c6373595cd5e4a5cb (patch)
treed1f536d557e91cf1ac46ab68755e1e4091a31420 /play.js
parent208df2953976067757e9477574fda56350b6407a (diff)
downloadhammer-of-the-scots-7cdf8ecdcd78f85c3331a97c6373595cd5e4a5cb.tar.gz
Fix tooltip of battle reserves.
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/play.js b/play.js
index de62ff0..fbc462b 100644
--- a/play.js
+++ b/play.js
@@ -143,10 +143,7 @@ function on_click_map_block(evt) {
}
function is_battle_reserve(who, list) {
- for (let [b, s, m] of list)
- if (who === b)
- return true
- return false
+ return list.includes(who)
}
function on_focus_battle_block(evt) {