Web Dev Solutions

Catalin Mititiuc

From a042537c8eeff2e45bcc5d678e2657f4f542ec93 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 2 Aug 2024 14:37:20 -0700 Subject: Fix firing arcs for squads --- src/modules/record_sheet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/record_sheet.js') diff --git a/src/modules/record_sheet.js b/src/modules/record_sheet.js index 931177f..684b84e 100644 --- a/src/modules/record_sheet.js +++ b/src/modules/record_sheet.js @@ -154,8 +154,8 @@ function createRecords(units) { return grouped; } -function getRecord({ dataset: { allegiance: al, number: n }}) { - const selector = `.soldier-record[data-number="${n}"][data-allegiance="${al}"]`; +function getRecord({ dataset: { allegiance: al, number: n, squad: s }}) { + const selector = `.soldier-record[data-number="${n}"][data-allegiance="${al}"][data-squad="${s}"]`; return document.querySelector(selector); } -- cgit v1.2.3