Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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));
});