summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-02 15:15:45 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit52b0899094c4c419499791307b4410c215d0c6d6 (patch)
tree649bec04832a25ca510c3299d728e74a4d564131
parent6bb0a56bad375b3ceaa1cf41dd8e0e247578f735 (diff)
downloadandean-abyss-52b0899094c4c419499791307b4410c215d0c6d6.tar.gz
Remove per-piece undo for removing all pieces from a city.
-rw-r--r--events.txt2
-rw-r--r--rules.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/events.txt b/events.txt
index afdabdb..758a1d8 100644
--- a/events.txt
+++ b/events.txt
@@ -1029,7 +1029,7 @@ EVENT 61
prompt "Remove all Cartels pieces from 1 City."
space 1 is_city(s) && has_cartels_piece(s)
prompt "Remove all Cartels pieces."
- piece_undo all is_piece_in_event_space(p) && is_cartels_piece(p)
+ piece all is_piece_in_event_space(p) && is_cartels_piece(p)
remove
endpiece
endspace
diff --git a/rules.js b/rules.js
index 6b7e631..d81b874 100644
--- a/rules.js
+++ b/rules.js
@@ -9626,7 +9626,7 @@ CODE[61 * 2 + 0] = [
[ vm_prompt, "Remove all Cartels pieces from 1 City." ],
[ vm_space, true, 1, 1, (s)=>is_city(s) && has_cartels_piece(s) ],
[ vm_prompt, "Remove all Cartels pieces." ],
- [ vm_piece, true, 999, 999, (p,s)=>is_piece_in_event_space(p) && is_cartels_piece(p) ],
+ [ vm_piece, false, 999, 999, (p,s)=>is_piece_in_event_space(p) && is_cartels_piece(p) ],
[ vm_remove ],
[ vm_endpiece ],
[ vm_endspace ],