From aa603ee72fc9572f8120b45b72bfc97ef01c64aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 May 2023 11:43:17 +0200 Subject: Don't allow placing bases on an LoC. Add an extra check, in case the Kidnap action is able to place "any piece" on an LoC. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 07ed5ae..b21db10 100644 --- a/rules.js +++ b/rules.js @@ -1653,13 +1653,13 @@ function can_stack_any(s, faction) { } function can_stack_base(s, faction) { - return can_stack_any(s, faction) && count_bases(s) < 2 + return (is_city(s) || is_dept(s)) && can_stack_any(s, faction) && count_bases(s) < 2 } function can_stack_piece(s, faction, type) { if (can_stack_any(s, faction)) { if (type === BASE) - return count_bases(s) < 2 + return (is_city(s) || is_dept(s)) && count_bases(s) < 2 return true } return false -- cgit v1.2.3