From: Ian Jackson Date: Wed, 14 Oct 2020 00:00:17 +0000 (+0100) Subject: allow wresting of held pieces X-Git-Tag: otter-0.2.0~660 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ff793861fb9f6795c9ed729978ef48b9db326cc6;p=otter.git allow wresting of held pieces Signed-off-by: Ian Jackson --- 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;