summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 0884dba..d06e86b 100644
--- a/rules.js
+++ b/rules.js
@@ -1689,6 +1689,15 @@ states.confirm_end_move_phase = {
undo: pop_undo
}
+function can_winter_campaign() {
+ if (game.winter_campaign === game.active) {
+ for (let town = first_town; town <= last_town; ++town)
+ if (is_friendly_field(town) && is_under_siege(town))
+ return true
+ }
+ return false
+}
+
states.move_phase = {
prompt: function (view, current) {
if (is_inactive_player(current))
@@ -1712,7 +1721,7 @@ states.move_phase = {
}
if (can_muster_anywhere())
gen_action(view, 'muster')
- if (game.winter_campaign === game.active)
+ if (can_winter_campaign())
gen_action(view, 'winter_campaign')
}
},