summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-11 11:51:10 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-11 11:51:10 +0200
commit6a71ddc9ac8039a65d3c109e97c2d674eb1909c4 (patch)
treed86c493abf1ddd41ec01151b28395d4b9672cf14
parent4ecc64f25199936de297a66f99d48608bda10470 (diff)
downloadandean-abyss-6a71ddc9ac8039a65d3c109e97c2d674eb1909c4.tar.gz
Clear undo before Elite Backing.
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index d15fe8d..1cccbea 100644
--- a/rules.js
+++ b/rules.js
@@ -5331,6 +5331,7 @@ states.kidnap_space = {
states.kidnap_drug_ransom = {
prompt() {
view.prompt = `Kidnap in ${space_name[game.sa.where]}: Place Shipment with a FARC Guerrilla.`
+ view.where = game.sa.where
view.selected_shipment = game.sa.shipment
gen_piece_in_space(game.sa.where, FARC, GUERRILLA)
},
@@ -5344,6 +5345,7 @@ states.kidnap_drug_ransom = {
states.kidnap_place = {
prompt() {
view.prompt = `Kidnap in ${space_name[game.sa.where]}: Place an AUC piece.`
+ view.where = game.sa.where
if (can_stack_piece(game.sa.where, AUC, BASE))
gen_piece_in_space(AVAILABLE, AUC, BASE)
if (can_stack_piece(game.sa.where, AUC, GUERRILLA))
@@ -6447,6 +6449,7 @@ states.remove_farc_zones = {
}
function goto_elite_backing() {
+ clear_undo()
game.current = AUC
if (can_rally())
game.state = "elite_backing"