From f990b698db82a08af663be271f34f2315680dd99 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Oct 2023 00:55:51 +0200 Subject: Reset game.transport when playing Themistocles. --- play.js | 2 +- rules.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/play.js b/play.js index 55c5433..d36c503 100644 --- a/play.js +++ b/play.js @@ -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()); diff --git a/rules.js b/rules.js index 63ab65a..44bd395 100644 --- a/rules.js +++ b/rules.js @@ -3027,6 +3027,7 @@ function goto_themistocles() { where: game.where, transport: game.transport, }; + game.transport = 0 goto_greek_movement(false, true, THEMISTOCLES); } -- cgit v1.2.3