From 84781b945439f143396a49f0df5cbf56bc0100ca Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 10 Jun 2023 00:14:27 +0200 Subject: Fix stacking check for Mono Jojoy. --- events.txt | 2 +- rules.js | 2 +- 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 ], -- cgit v1.2.3