index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-26 15:32:47 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-07-26 15:32:47 -0700 |
commit | 59dfb8d697ebbe499eb00625a91ab2778e3c7534 (patch) | |
tree | 5d89df6a24e9fe60c1a8abf1c737b78ebf552d18 /src | |
parent | aadc01376d075559725de003a769cdbe3e173c0e (diff) |
Fix arrangeCounters
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/gameboard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/gameboard.js b/src/modules/gameboard.js index f909d1f..135b5e9 100644 --- a/src/modules/gameboard.js +++ b/src/modules/gameboard.js @@ -434,7 +434,7 @@ export function setCounter(name) { } function arrangeCounters(container) { - const counters = container.querySelectorAll('[class^="counter-"]'); + const counters = [...container.children].filter(isCounter); const length = 12; const gravity = 1; const lateralForce = gravity; |