summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-24 16:04:34 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-24 16:04:34 -0400
commit39ab4ad27b182e132d9ce79f3089affef4c1ea94 (patch)
tree4e465a1f0f620003c5575b646d4f21cac3015e67 /rules.js
parent207250e175faf0914293407e170f426b46df9b05 (diff)
downloadvijayanagara-39ab4ad27b182e132d9ce79f3089affef4c1ea94.tar.gz
Fix Event can_migrate_in_space
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
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 ],