summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-01 15:03:12 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-01 15:03:12 +0100
commit415f8a83134b891fd48792843b7e3de82efb16d7 (patch)
tree8d020164547f4d8a80d532d5da2155c8398928ec
parente20075ddf65f4d676ca691508e072bf69d303024 (diff)
downloadcrusader-rex-415f8a83134b891fd48792843b7e3de82efb16d7.tar.gz
Only sea move into besieged castle in Tyre and Tripoli.
Fix bug when combining Richard's Sea Legs with non-Fortified Port that is under siege...
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index d873d23..90049a7 100644
--- a/rules.js
+++ b/rules.js
@@ -1947,7 +1947,7 @@ states.sea_move_to = {
set_delete(game.castle, game.who)
- if (besieged_player(to) === game.active && is_more_room_in_castle(to)) {
+ if ((to === TYRE || to === TRIPOLI) && besieged_player(to) === game.active && is_more_room_in_castle(to)) {
// Move into besieged fortified port
set_add(game.castle, game.who)
log(game.active + " sea moved:")