diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-14 17:25:39 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | 77b270991aa4741870c8871c9bd3d5140c1cb969 (patch) | |
tree | 1b8abcee75b97140b29e3b7e732290202cb9c681 | |
parent | 21d853ac27ed3751087750051dd97e68a0502c3b (diff) | |
download | andean-abyss-77b270991aa4741870c8871c9bd3d5140c1cb969.tar.gz |
Fix stacking checks.
-rw-r--r-- | rules.js | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -15,9 +15,8 @@ // TODO: auto-skip civic action // TODO: auto-skip agitation -// TODO: don't auto-end free Rally with elite backing - -// TODO: auto-end Extort ? +// TODO: don't auto-end 7th sf remove terror/sabotage (no undo suprise) +// TODO: don't auto-end free Rally with elite backing (no undo suprise) const AUTOMATIC = true @@ -3510,7 +3509,7 @@ states.rally_space = { view.prompt = `Rally: Place up to ${rally_count()} Guerrillas, build Base, or Move.` view.where = game.op.where - if (count_pieces(game.op.where, game.current, GUERRILLA) >= 2 && can_stack_base(game.op.where, game.current)) + if (count_pieces(game.op.where, game.current, GUERRILLA) >= 2 && count_bases(game.op.where) < 2) view.actions.base = 1 else view.actions.base = 0 @@ -4273,7 +4272,7 @@ states.air_lift_move = { piece(p) { push_undo() move_piece(p, game.sa.to) - if (--game.sa.count === 0 || count_cubes(game.sa.from) === 0 || !can_stack_any(game.sa.to)) + if (--game.sa.count === 0 || count_cubes(game.sa.from) === 0 || !can_stack_any(game.sa.to, GOVT)) end_special_activity() }, end_air_lift() { |