From 7cdf8ecdcd78f85c3331a97c6373595cd5e4a5cb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 30 Jun 2022 15:16:34 +0200 Subject: Fix tooltip of battle reserves. --- play.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'play.js') 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) { -- cgit v1.2.3