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/game/soldier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/game/soldier.js') diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js index a71ceba..8407621 100644 --- a/src/modules/game/soldier.js +++ b/src/modules/game/soldier.js @@ -3,8 +3,8 @@ import { extractWeaponFromRecord, isRecord } from '../record_sheet.js'; const selectedClass = 'selected'; -function dataSelector({ dataset: { allegiance, number }}) { - return `[data-number="${number}"][data-allegiance="${allegiance}"]`; +function dataSelector({ dataset: { allegiance, number, squad }}) { + return `[data-number="${number}"][data-allegiance="${allegiance}"][data-squad="${squad}"]`; } function traceSelector(counter) { -- cgit v1.2.3