Change attacker color from green to blue; change trace color
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user