diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-18 20:29:27 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-06-18 20:30:23 +0200 |
commit | e1db7534f6360c7b83131e049e913038d595080e (patch) | |
tree | 9cfa1fe9083e820da8495a1f83005bee7a8b7773 | |
parent | 3295444f1ae740d6fd7eb5a268aaa3f77849f9a5 (diff) | |
download | andean-abyss-e1db7534f6360c7b83131e049e913038d595080e.tar.gz |
Fix stacking check for Riverines event.
Check the stacking of the _destination_ space not the source space.
-rw-r--r-- | events.txt | 4 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1156,13 +1156,13 @@ EVENT 69 space 1 game.vm.m && (s !== game.vm.m[0]) && is_within_adjacent_depts(s, game.vm.m[0], 3) && can_stack_any(s, game.current) if game.current === GOVT prompt "Move cubes to destination." - piece_undo_opt all (s === game.vm.m[0]) && is_cube(p) && can_stack_any(s, GOVT) + piece_undo_opt all (s === game.vm.m[0]) && is_cube(p) && can_stack_any(game.vm.s, GOVT) move endpiece free_train_sweep_assault else prompt "Move Guerrillas to destination." - piece_undo_opt all (s === game.vm.m[0]) && is_piece(p, game.current, GUERRILLA) && can_stack_any(s, game.current) + piece_undo_opt all (s === game.vm.m[0]) && is_piece(p, game.current, GUERRILLA) && can_stack_any(game.vm.s, game.current) move endpiece free_rally_attack_terror @@ -9968,13 +9968,13 @@ CODE[69 * 2 + 0] = [ [ vm_space, true, 1, 1, (s)=>game.vm.m && (s !== game.vm.m[0]) && is_within_adjacent_depts(s, game.vm.m[0], 3) && can_stack_any(s, game.current) ], [ vm_if, ()=>game.current === GOVT ], [ vm_prompt, "Move cubes to destination." ], - [ vm_piece, true, 0, 999, (p,s)=>(s === game.vm.m[0]) && is_cube(p) && can_stack_any(s, GOVT) ], + [ vm_piece, true, 0, 999, (p,s)=>(s === game.vm.m[0]) && is_cube(p) && can_stack_any(game.vm.s, GOVT) ], [ vm_move ], [ vm_endpiece ], [ vm_free_train_sweep_assault ], [ vm_else ], [ vm_prompt, "Move Guerrillas to destination." ], - [ vm_piece, true, 0, 999, (p,s)=>(s === game.vm.m[0]) && is_piece(p, game.current, GUERRILLA) && can_stack_any(s, game.current) ], + [ vm_piece, true, 0, 999, (p,s)=>(s === game.vm.m[0]) && is_piece(p, game.current, GUERRILLA) && can_stack_any(game.vm.s, game.current) ], [ vm_move ], [ vm_endpiece ], [ vm_free_rally_attack_terror ], |