Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-22 09:12:47 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-22 09:12:47 -0700
commit98e4fd58d8c222652f3a5bd1d8a76f7618824e17 (patch)
tree12f1486c73f39fa5190dd938f99efb0257094761 /src/modules/game/soldier.js
parent7395df376deac945fa8f10cbc05c318b1d8dc931 (diff)
Use observable for end move and prone flag
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 fb0a559..ae1d708 100644
--- a/src/modules/game/soldier.js
+++ b/src/modules/game/soldier.js
@@ -129,7 +129,7 @@ export function endMove(svg, counter) {
}
export function hasProne(counter) {
- return !!counter.querySelector('[href="#counter-prone"]');
+ return !!counter.querySelector('[href="#counter-prone"]:not(.removed)');
}
export function toggleProne(counter) {