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-04-24 13:37:06 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-24 13:41:09 -0700 |
commit | 3f3af09f2bd8ac8ae7c1d2cb49d26cbca155a881 (patch) | |
tree | 7ba4cca9a62f06ad3669fe01265ab25d546499c5 /src/modules/game.js | |
parent | f3a5999142f3444d2fc661c5f0747ddaaaaf5e59 (diff) |
Remove 'previous' from counter's dataset when move has ended
Diffstat (limited to 'src/modules/game.js')
-rw-r--r-- | src/modules/game.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/game.js b/src/modules/game.js index 657aa9d..237e346 100644 --- a/src/modules/game.js +++ b/src/modules/game.js @@ -99,10 +99,12 @@ export default class Game { } select(allegiance, number) { + this.placing.push(this.counter.getCounter(allegiance, number)); this.counter.select({ dataset: { allegiance, number } }); } unSelect() { + this.placing = []; this.counter.unSelect(); } |