Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-19 12:10:00 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-19 12:10:00 -0700
commit66887e37103591586c2b002594f2f79602e71d25 (patch)
tree31af125a63a9d66bdb347207d576ee6570149f4c /src/modules/game/soldier.js
parent56cb96c0f8142fd6216e6f39d692c19c182125a1 (diff)
Change attacker color from green to blue; change trace color
Diffstat (limited to 'src/modules/game/soldier.js')
-rw-r--r--src/modules/game/soldier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/game/soldier.js b/src/modules/game/soldier.js
index ffb902b..fb0a559 100644
--- a/src/modules/game/soldier.js
+++ b/src/modules/game/soldier.js
@@ -80,7 +80,7 @@ export function handleTrace(svg, selected, clone, current) {
if (!trace) {
trace = createTrace(getCellPosition(clone.parentElement), current, selected);
- svg.querySelector('.gameboard').prepend(trace);
+ svg.querySelector('.grid').before(trace);
} else {
const points = `${trace.getAttribute('points')} ${current.x},${current.y}`;
trace.setAttributeNS(null, 'points', points);