From 98579e020dcb446ce9e24fd31153b65ce4402e24 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 3 Jun 2021 01:22:33 +0100 Subject: [PATCH] script: Do not multiselect hands (non-moveable pieces) Signed-off-by: Ian Jackson --- templates/script.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/script.ts b/templates/script.ts index 0933f533..c1ecd3e5 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -927,6 +927,9 @@ function mouse_find_predicate( let p = pieces[piece]; if (p.pinned && !wresting) continue; if (p.held && p.held != us && !wresting) continue; + if (i > 0 + && !(p.moveable == 'Yes' || p.moveable == 'IfWresting' && wresting)) + continue; if (!predicate(p)) { continue; } -- 2.30.2