Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/game/soldier.js2
-rw-r--r--src/modules/gameboard.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js
index 0d75fc6..922faca 100644
--- a/src/modules/game/soldier.js
+++ b/src/modules/game/soldier.js
@@ -77,7 +77,7 @@ export function place(svg, selected, cell) {
trace.dataset.allegiance = selected.dataset.allegiance;
trace.classList.add('move-trace');
- svg.querySelector('.board').prepend(trace);
+ svg.querySelector('.gameboard').prepend(trace);
} else {
points = `${trace.getAttribute('points')} ${current.x},${current.y}`;
}
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js
index 7623a31..9d054d0 100644
--- a/src/modules/gameboard.js
+++ b/src/modules/gameboard.js
@@ -105,7 +105,7 @@ function drawSightLine(sourceCell, targetCell) {
const hexes = svg.querySelectorAll(selector);
sightLine.setHexes(hexes);
const line = sightLine.create(getCellPosition(sourceCell), getCellPosition(targetCell));
- svg.querySelector('.board').appendChild(line);
+ svg.querySelector('.gameboard').appendChild(line);
distanceCallback && distanceCallback(hexes.length - 1);
}