diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/common/client.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js index 670fa07..4a58e47 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -298,18 +298,20 @@ function init_client(roles) { } let is_your_turn = false; +let old_active = null; function on_update_bar() { document.getElementById("prompt").textContent = game.prompt; if (game.actions) { document.querySelector(".grid_top").classList.add("your_turn"); - if (!is_your_turn) + if (!is_your_turn || old_active != game.active) start_blinker("YOUR TURN"); is_your_turn = true; } else { document.querySelector(".grid_top").classList.remove("your_turn"); is_your_turn = false; } + old_active = game.active; } function on_update_log() { |