diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1267,6 +1267,10 @@ function get_supreme_commander(s) { return -1 } +function is_supreme_commander(p) { + return get_supreme_commander(game.pos[p]) === p +} + function is_mixed_stack(s) { let pow = -1 for (let p of all_generals) { @@ -3758,7 +3762,7 @@ function goto_combat() { continue if (piece_power[p] === P_SAXONY && is_saxony_neutral()) continue - if (is_piece_on_map(p)) + if (is_piece_on_map(p) && is_supreme_commander(p)) set_add(from, game.pos[p]) } |