summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-10 00:14:27 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-10 00:14:27 +0200
commit84781b945439f143396a49f0df5cbf56bc0100ca (patch)
tree993ddc4722698d66a45e661512da75fbcc086b73
parentdce4ca258b4b63dc520b2a7ce3497c00f8716142 (diff)
downloadandean-abyss-84781b945439f143396a49f0df5cbf56bc0100ca.tar.gz
Fix stacking check for Mono Jojoy.
-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 ced57b7..13a6d43 100644
--- a/events.txt
+++ b/events.txt
@@ -236,7 +236,7 @@ EVENT 20
prompt "Move up to 6 FARC Guerillas into adjacent spaces."
piece_undo_opt 6 is_farc_guerrilla(p)
prompt "Move FARC Guerilla into an adjacent space."
- space_no_undo 1 is_adjacent(s, piece_space(game.vm.p)) && can_stack_any(s, game.current)
+ space_no_undo 1 is_adjacent(s, piece_space(game.vm.p)) && can_stack_any(s, FARC)
move
endspace
endpiece
diff --git a/rules.js b/rules.js
index fe56e65..d84f14b 100644
--- a/rules.js
+++ b/rules.js
@@ -8779,7 +8779,7 @@ CODE[20 * 2 + 0] = [
[ vm_prompt, "Move up to 6 FARC Guerillas into adjacent spaces." ],
[ vm_piece, true, 0, 6, (p,s)=>is_farc_guerrilla(p) ],
[ vm_prompt, "Move FARC Guerilla into an adjacent space." ],
- [ vm_space, false, 1, 1, (s)=>is_adjacent(s, piece_space(game.vm.p)) && can_stack_any(s, game.current) ],
+ [ vm_space, false, 1, 1, (s)=>is_adjacent(s, piece_space(game.vm.p)) && can_stack_any(s, FARC) ],
[ vm_move ],
[ vm_endspace ],
[ vm_endpiece ],