summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/server.js b/server.js
index 488f7e2..df31146 100644
--- a/server.js
+++ b/server.js
@@ -2002,10 +2002,6 @@ function on_action(socket, action, arg) {
SLOG(socket, "ACTION", action)
try {
let state = get_game_state(socket.game_id)
-
- if (state.active !== socket.role && state.active !== "Both" && state.active !== "All")
- return send_message(socket, 'error', "It's not your turn!")
-
let old_active = state.active
state = socket.rules.action(state, socket.role, action, arg)
put_game_state(socket.game_id, state, old_active)