diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-11 11:09:52 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-11 11:09:52 +0100 |
commit | 839ab1eec84287f78a8068fee8d3d42e258a53c3 (patch) | |
tree | 4694862a1cf6093f16d7ae899ac9ba69ab745493 /rules.js | |
parent | 2d091994e2e47ef540d464719caef557895d0952 (diff) | |
download | maria-839ab1eec84287f78a8068fee8d3d42e258a53c3.tar.gz |
fix hussar search when generals eliminated
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1599,8 +1599,9 @@ states.place_hussars_where = { prompt("Place the hussar in a city.") view.selected = game.selected for (let p of all_power_generals[P_AUSTRIA]) - for (let x of search_hussar_bfs(game.pos[p])) - gen_action_space(x) + if (is_piece_on_map(p)) + for (let x of search_hussar_bfs(game.pos[p])) + gen_action_space(x) }, space(to) { game.state = "place_hussars" |