summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-28 20:32:37 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-03 20:57:10 +0200
commit2f71b847f95ab249b01356b164c4e07b414c47be (patch)
treebef983ca132dd4d1cb1ef2835d37c46b3f241e5a
parenta322f98e3ec16a2e508bc2da8c15c8037bf219f5 (diff)
downloadandean-abyss-2f71b847f95ab249b01356b164c4e07b414c47be.tar.gz
Allow transferring shipments between own guerrillas.
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 6f7d02a..9b10b63 100644
--- a/rules.js
+++ b/rules.js
@@ -2095,17 +2095,17 @@ states.transfer_shipment = {
view.selected_shipment = game.transfer.shipment
let p = get_held_shipment_piece(game.transfer.shipment)
let s = piece_space(p)
- if (!is_player_farc())
+ if (game.current === FARC || !is_player_farc())
for_each_piece(FARC, GUERRILLA, (pp,ss) => {
if (pp !== p && ss === s)
gen_action_piece(pp)
})
- if (!is_player_auc())
+ if (game.current === AUC || !is_player_auc())
for_each_piece(AUC, GUERRILLA, (pp,ss) => {
if (pp !== p && ss === s)
gen_action_piece(pp)
})
- if (!is_player_cartels())
+ if (game.current === CARTELS || !is_player_cartels())
for_each_piece(CARTELS, GUERRILLA, (pp,ss) => {
if (pp !== p && ss === s)
gen_action_piece(pp)