summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-04 21:51:21 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-04 21:51:21 +0000
commitf95ab2987fc3d04670e92595c94be867e904332a (patch)
treeccf0e0eeaf2fed477e591b33007c143d48d268f7 /rules.js
parent70b0126d702dcb88eecbd56384e1cc26b7358326 (diff)
download1989-dawn-of-freedom-f95ab2987fc3d04670e92595c94be867e904332a.tar.gz
Fix valid spaces where already present
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5d3db6c..0e21360 100644
--- a/rules.js
+++ b/rules.js
@@ -2651,7 +2651,12 @@ function valid_spaces_infl() {
// If the piece has the player's influence, add it and its adjacent spaces to the set
if (player_influence > 0) {
- valid_spaces_set.add(space.space_id)
+ if (
+ ops > 1 ||
+ !check_opp_control(space.space_id) ||
+ (game.active === DEM && space.country === 'East_Germany' && game.persistent_events.includes(C_GENSCHER))
+ )
+ valid_spaces_set.add(space.space_id)
let adjacent_spaces = get_adjusted_adjacency(space.space_id)
for (let adj_space_id of adjacent_spaces) {