From 39ab4ad27b182e132d9ce79f3089affef4c1ea94 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Mon, 24 Mar 2025 16:04:34 -0400 Subject: Fix Event can_migrate_in_space --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index b71fe62..a06ea9e 100644 --- a/rules.js +++ b/rules.js @@ -1881,7 +1881,6 @@ function goto_rally_space() { } function end_rally_space() { - log_space(game.cmd.where, "Rally") pop_summary() game.state = "rally" } @@ -1906,6 +1905,7 @@ states.rally = { space(s) { push_undo() select_cmd_space(s, 1) + log_space(s, "Rally") goto_rally_space() }, end_rally: end_command, @@ -6239,7 +6239,7 @@ CODE[20 * 2 + 0] = [ [ vm_current, REBEL_FACTIONS ], [ vm_add_influence, ()=>(game.current) ], [ vm_prompt, "In Orissa or an adjacent Province, you may Migrate, Rally and then Build." ], - [ vm_space, true, 0, 1, (s)=>(is_adjacent_to_city(C_WARANGAL, s) || s === S_BENGAL) ], + [ vm_space, true, 0, 1, (s)=>(is_adjacent_to_city(C_WARANGAL, s) || s === S_BENGAL && can_migrate_in_space(s)) ], [ vm_free_migrate ], [ vm_free_rally ], [ vm_free_build ], @@ -6525,7 +6525,7 @@ CODE[30 * 2 + 1] = [ CODE[31 * 2 + 0] = [ [ vm_current, REBEL_FACTIONS ], [ vm_prompt, "Free Migrate in a Province adjacent to Vijayanagara." ], - [ vm_space, true, 0, 1, (s)=>(is_adjacent_to_city(C_VIJAYANAGARA, s)) ], + [ vm_space, true, 0, 1, (s)=>(is_adjacent_to_city(C_VIJAYANAGARA, s) && can_migrate_in_space(s)) ], [ vm_mark_space ], [ vm_free_migrate ], [ vm_clean_p ], -- cgit v1.2.3