summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-12 13:46:31 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-12 13:46:31 +0200
commitcf0fbb65a29621023494413344186e026d505a78 (patch)
treee390a6fe3c05deb74663e5b39c52ae010a5bfb34
parentbf1aff40c570e9904f0be3c0ccbd666b3ec8b0ff (diff)
downloadandean-abyss-cf0fbb65a29621023494413344186e026d505a78.tar.gz
Fix messed up checks for valid shipment transfer sources.
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index dcf9b20..a7b7fde 100644
--- a/rules.js
+++ b/rules.js
@@ -2081,9 +2081,9 @@ function can_transfer_shipment(sh) {
return true
if (!is_player_farc() && has_piece(s, FARC, GUERRILLA))
return true
- if (!is_player_auc() && has_piece(s, FARC, AUC))
+ if (!is_player_auc() && has_piece(s, AUC, GUERRILLA))
return true
- if (!is_player_cartels() && has_piece(s, FARC, CARTELS))
+ if (!is_player_cartels() && has_piece(s, CARTELS, GUERRILLA))
return true
}
return false