From 94408d03daa8e1e590c75602f9aaccfa7eeae884 Mon Sep 17 00:00:00 2001 From: Joël Simoneau Date: Sat, 5 Apr 2025 07:43:11 -0400 Subject: Fix event 10 prompt --- events.txt | 1 + rules.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/events.txt b/events.txt index 0429544..8d6f306 100644 --- a/events.txt +++ b/events.txt @@ -213,6 +213,7 @@ SHADED 10 current DS prompt "Move any Qasbah to Spaces containing Governors." piece_undo_opt all is_qasbah(p) + prompt "Move any Qasbah to Spaces containing Governors." space 1 has_governor(s) && !has_qasbah(s) move endspace diff --git a/rules.js b/rules.js index 5e82eaa..c9bf011 100644 --- a/rules.js +++ b/rules.js @@ -2471,6 +2471,7 @@ states.conspire = { }, space(s) { push_undo() + game.decree.count -= 1 goto_conspire_space(s) }, end_conspire: end_decree @@ -2532,7 +2533,6 @@ states.conspire_replace = { let amir = find_piece(AVAILABLE, BK, ELITE) game.decree.pp = place_piece(amir, game.decree.where) if (game.decree.rebel) to_rebel(game.decree.pp) - game.decree.count -= 1 if (!game.decree.rebel) { game.decree.is_rebel = null game.state = "conspire_replace" @@ -6142,6 +6142,7 @@ CODE[10 * 2 + 1] = [ [ vm_current, DS ], [ vm_prompt, "Move any Qasbah to Spaces containing Governors." ], [ vm_piece, true, 0, 999, (p,s)=>is_qasbah(p) ], + [ vm_prompt, "Move any Qasbah to Spaces containing Governors." ], [ vm_space, true, 1, 1, (s)=>has_governor(s) && !has_qasbah(s) ], [ vm_move ], [ vm_endspace ], -- cgit v1.2.3