diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-30 00:39:15 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-30 00:39:15 +0200 |
commit | b1bb0b01a015560569998ac1bfccc1a56571912e (patch) | |
tree | fdd888f7c531334d2d3540583d5d4b3721b75edd | |
parent | 2a8376a060fe05a66075457476624a5453cadc39 (diff) | |
download | pax-pamir-master.tar.gz |
-rw-r--r-- | rules.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -587,9 +587,12 @@ function gen_select_spy_to_move() { function gen_select_tribe_to_move() { let x = active_cylinders() - for (let i = x; i < x + 10; ++i) - if (game.pieces[i] >= first_region && game.pieces[i] <= last_region) - gen_action('piece', i) + for (let i = x; i < x + 10; ++i) { + let r = game.pieces[i] + if (r >= first_region && r <= last_region) + if (active_can_move_from_region(r)) + gen_action('piece', i) + } } function select_available_block() { |