summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-15 16:44:02 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-15 16:45:24 +0200
commit6287eda064ea7b089d07074866c6da1d807bbf23 (patch)
tree20c9c75b3ba67fe715dbb90e1233e2e453d7ed5e
parent4d4c7db5e0819a5fbc19f8e3f11d5eeeb625d2e2 (diff)
downloadandean-abyss-6287eda064ea7b089d07074866c6da1d807bbf23.tar.gz
Tweak Bribe space to end when no more guerrillas/cubes can be removed.
-rw-r--r--rules.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 2a525bd..2b55403 100644
--- a/rules.js
+++ b/rules.js
@@ -5823,7 +5823,13 @@ states.bribe_space = {
piece(p) {
logi("Removed " + piece_name(p))
remove_piece(p)
- if (game.sa.targeted || is_any_base(p))
+ if (game.sa.targeted)
+ end_bribe_space()
+ else if (is_any_base(p))
+ end_bribe_space()
+ else if (is_cube(p) && !has_cube(game.sa.where))
+ end_bribe_space()
+ else if (is_any_guerrilla(p) && !has_piece(game.sa.where, FARC, GUERRILLA) && !has_piece(game.sa.where, AUC, GUERRILLA))
end_bribe_space()
else
game.sa.targeted |= target_faction(p)