From 6287eda064ea7b089d07074866c6da1d807bbf23 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 15 May 2023 16:44:02 +0200 Subject: Tweak Bribe space to end when no more guerrillas/cubes can be removed. --- rules.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3