diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-11 00:55:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-11 01:01:56 +0200 |
commit | f990b698db82a08af663be271f34f2315680dd99 (patch) | |
tree | 5a8d0bd8b65d9d53713aeaf412ecdd0cefa1dbbc | |
parent | 64229dce6e3fac266a403f85eb690e421cc10cfb (diff) | |
download | 300-earth-and-water-f990b698db82a08af663be271f34f2315680dd99.tar.gz |
Reset game.transport when playing Themistocles.
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.js | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -381,7 +381,7 @@ function on_update() { // add if not enough for (let space in view.units) { let list = elements[space]; - let n = view.units[space][index]; + let n = view.units[space][index] | 0; while (list.length < n) { if (overflow.length > 0) { list.unshift(overflow.pop()); @@ -3027,6 +3027,7 @@ function goto_themistocles() { where: game.where, transport: game.transport, }; + game.transport = 0 goto_greek_movement(false, true, THEMISTOCLES); } |