summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-27 19:27:34 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commit252169b8b3be292daa143752904aa9e23acc6cf0 (patch)
tree98edc1561ba5b05f891ad0d0e503214da05d1680 /play.js
parentd76813a4482aad58a54fa064858cfe256e4f7dc9 (diff)
downloadrommel-in-the-desert-252169b8b3be292daa143752904aa9e23acc6cf0.tar.gz
Keep next month's reinforcements hidden to not reveal early arrivals.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index e48a0fd..d77ba24 100644
--- a/play.js
+++ b/play.js
@@ -177,7 +177,7 @@ function is_unit_fired(u) {
}
function is_unit_revealed(u) {
- let reinf = hexmonth + view.month
+ let reinf = hexmonth + view.month + 1
if (player === AXIS)
return is_axis_unit(u) || set_has(view.revealed, u) || unit_hex(u) > reinf
else if (player === ALLIED)