Web Dev Solutions

Catalin Mititiuc

From d75fb0b37c7dbfb58b14f563b1dc3fb2a73305b7 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sun, 28 Jul 2024 12:55:11 -0700 Subject: Add some team color counters --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/index.js b/src/index.js index fa90d13..8f853bd 100644 --- a/src/index.js +++ b/src/index.js @@ -162,7 +162,7 @@ document.querySelectorAll('.set-firing-arc').forEach(el => el.addEventListener('click', gameboard.setFiringArc) ); -document.querySelectorAll('.counters-list button').forEach(el => { +document.querySelectorAll('.counters-list button, button.attacker, button.defender').forEach(el => { el.addEventListener('click', e => gameboard.setCounter(el.className)); }); -- cgit v1.2.3