summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-03 20:23:12 -0400
committerDavid Gay <david@davidgay.org>2021-06-03 20:23:12 -0400
commit1ff523f433898a221b063ea95e729cbb45e00a44 (patch)
tree59c44d14b88e06591cb9a810611f2162ff38acbd /app
parentde2cd93ebcacb37af501b46a60d11b25913dfa1f (diff)
Make sure to add a blank line to results after combat activity even if it ends due to being too wounded
Diffstat (limited to 'app')
-rw-r--r--app/controllers/game_controller.rb2
1 files changed, 2 insertions, 0 deletions
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