From 1ff523f433898a221b063ea95e729cbb45e00a44 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 20:23:12 -0400 Subject: Make sure to add a blank line to results after combat activity even if it ends due to being too wounded --- app/controllers/game_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index f8b9973..9574f31 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -195,6 +195,7 @@ class GameController < ApplicationController current_char.stop_activity @results.replace([{ type: "error", message: "You can't fight in your condition. You'll have to heal a wound." }]) + @results.push({ type: "br" }) end private @@ -253,6 +254,7 @@ class GameController < ApplicationController unless char.can_fight? @results.push({ type: "error", message: "You can't fight in your condition. You'll have to heal a wound." }) + @results.push({ type: "br" }) char.stop_activity return end -- cgit v1.2.3