Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-08-02 14:37:20 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-08-02 14:37:20 -0700
commita042537c8eeff2e45bcc5d678e2657f4f542ec93 (patch)
tree6d7a5bc0ad04eb6cce6a1948cd8e8e671399bc87 /src/modules/record_sheet.js
parentf6ee6e3560022c77724535c2f7abd98c474ced8c (diff)
Fix firing arcs for squads
Diffstat (limited to 'src/modules/record_sheet.js')
-rw-r--r--src/modules/record_sheet.js4
1 files changed, 2 insertions, 2 deletions
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);
}