Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-07-28 12:55:11 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-07-28 12:55:11 -0700
commitd75fb0b37c7dbfb58b14f563b1dc3fb2a73305b7 (patch)
tree7d8ec3cec949465d9b3a5b7f11a0cd0e15613ff4 /src
parent7183511dbf4062535e676bd923856b213d565a52 (diff)
Add some team color counters
Diffstat (limited to 'src')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
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));
});