summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-20 12:44:35 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitf315b4918cfc14eba5ad85dc41dfde1fc255ba49 (patch)
tree2b6792017610e7242cfae763f665e89819e1a436
parent51b4f3fa21f47927d8d177e473597d6f9c26f6fe (diff)
downloadnevsky-f315b4918cfc14eba5ad85dc41dfde1fc255ba49.tar.gz
Only check Campaign Victory during Campaign phase discard.
-rw-r--r--rules.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index bce6256..a5383c3 100644
--- a/rules.js
+++ b/rules.js
@@ -9723,8 +9723,10 @@ function end_ransom_disband() {
function end_disband() {
clear_undo()
- if (check_campaign_victory())
- return
+ if (is_campaign_phase()) {
+ if (check_campaign_victory())
+ return
+ }
set_active_enemy()
if (is_campaign_phase()) {