diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-02-21 15:57:37 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | 53182d6710c4acb86b3c077bd2f6cf8b73b672e4 (patch) | |
tree | afc9748fbf061bb637ebad014a76c7d80562cf1e | |
parent | 4e3d16c1a289be7e581a7650432ed944485704a7 (diff) | |
download | wilderness-war-53182d6710c4acb86b3c077bd2f6cf8b73b672e4.tar.gz |
fix naval move & foul weather
-rw-r--r-- | rules.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -2732,6 +2732,8 @@ function stop_move() { function gen_naval_move() { let from = moving_piece_space(); + if (!piece_can_naval_move_from(moving_piece(), from)) + return; if (game.active === BRITAIN) { game.amphib.forEach(to => { if (to !== from) @@ -5062,10 +5064,10 @@ function end_siege_coehorns_defender() { states.siege_surrender = { prompt() { if (player.hand.includes(SURRENDER)) { - view.prompt = `Siege in ${space_name(game.siege_where)}. You may play "Surrender!".`; + view.prompt = `Siege in ${space_name(game.siege_where)}. You may play "Surrender!"`; gen_action('play_event', SURRENDER); } else { - view.prompt = `Siege in ${space_name(game.siege_where)}. You don't have "Surrender!".`; + view.prompt = `Siege in ${space_name(game.siege_where)}. You don't have "Surrender!"`; } gen_action_pass(); }, @@ -6132,10 +6134,10 @@ function goto_massacre(st) { function massacre_prompt() { if (player.hand.includes(MASSACRE)) { - view.prompt = `You may play "Massacre!".`; + view.prompt = `You may play "Massacre!"`; gen_action('play_event', MASSACRE); } else { - view.prompt = `You don't have "Massacre!".`; + view.prompt = `You don't have "Massacre!"`; } gen_action_next(); } |