From 6e7794c38edbedf93a2df32c24e1dfcf366c4b6e Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 6 Aug 2021 12:13:24 +1000 Subject: [PATCH] Update vehicles to move attachments --- src/components/konva/Token.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/konva/Token.tsx b/src/components/konva/Token.tsx index 1233e12..14e24c7 100644 --- a/src/components/konva/Token.tsx +++ b/src/components/konva/Token.tsx @@ -107,7 +107,9 @@ function Token({ // Find all other characters on the map and check whether they're // intersecting the vehicle - const tokens = layer.find(".character"); + const characters = layer.find(".character"); + const attachments = layer.find(".attachment"); + const tokens = [...characters, ...attachments]; for (let other of tokens) { if (other === tokenGroup) { continue;