From ff793861fb9f6795c9ed729978ef48b9db326cc6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Oct 2020 01:00:17 +0100 Subject: [PATCH] allow wresting of held pieces Signed-off-by: Ian Jackson --- templates/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index e4ada295..0dd6f78d 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -613,7 +613,7 @@ function drag_mousedown(e : MouseEvent, shifted: boolean) { if (tp.held != us) continue; drag_add_piece(tpiece,tp); } - } else if (held == null) { + } else if (held == null || wresting) { if (p.pinned && !wresting) { add_log_message('That piece is pinned to the table.'); return; -- 2.30.2