diff options
-rw-r--r-- | rules.js | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1798,19 +1798,24 @@ states.remove_pieces = { disable_negotiation: true, prompt() { view.prompt = "Remove pieces to Available Forces." + let who = -1 + if (game.op) + who = game.op.who + else if (game.prop) + who = game.prop.who for (let p = first_piece[game.current][BASE]; p <= last_piece[game.current][BASE]; ++p) - if (piece_space(p) >= 0) + if (piece_space(p) >= 0 && p !== who) gen_action_piece(p) if (game.current === GOVT) { for (let p = first_piece[game.current][TROOPS]; p <= last_piece[game.current][TROOPS]; ++p) - if (piece_space(p) >= 0) + if (piece_space(p) >= 0 && p !== who) gen_action_piece(p) for (let p = first_piece[game.current][POLICE]; p <= last_piece[game.current][POLICE]; ++p) - if (piece_space(p) >= 0) + if (piece_space(p) >= 0 && p !== who) gen_action_piece(p) } else { for (let p = first_piece[game.current][GUERRILLA]; p <= last_piece[game.current][GUERRILLA]; ++p) - if (piece_space(p) >= 0) + if (piece_space(p) >= 0 && p !== who) gen_action_piece(p) } view.actions.done = 1 |