From 53182d6710c4acb86b3c077bd2f6cf8b73b672e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Feb 2022 15:57:37 +0100 Subject: fix naval move & foul weather --- rules.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 1b02e82..9bee254 100644 --- a/rules.js +++ b/rules.js @@ -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(); } -- cgit v1.2.3