summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 01:36:44 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-02-18 01:36:44 +0100
commita4832050cdc2aea37c4a292179acdf550883e1da (patch)
tree42dcc68ef268445f38d90d80f6f946df0821a49a /rules.js
parenta38ce1439d20edf18b0b20529abd15cb8499485f (diff)
downloadplantagenet-a4832050cdc2aea37c4a292179acdf550883e1da.tar.gz
fix disembark2
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 81ce176..424cbd2 100644
--- a/rules.js
+++ b/rules.js
@@ -11164,10 +11164,15 @@ function goto_disembark() {
function end_disembark() {
game.who = NOBODY
set_active_enemy()
- if (game.active === P1)
+ if (game.active === P1 && has_lords_at_sea())
goto_disembark()
- else
+ else if (game.active === P2 && has_lords_at_sea()) {
+ goto_disembark()
+ }
+ else {
+ set_active(P1)
goto_game_end()
+ }
}
function do_disembark() {