summaryrefslogtreecommitdiff
path: root/app/controllers/game_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/game_controller.rb')
-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 dcfc3a3..aad4b31 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -132,6 +132,7 @@ class GameController < ApplicationController
else
current_char.stop_activity
@results.push({ type: "message", body: "You have finished your work." })
+ return
end
else
current_char.update(activity_started_at: Time.now)
@@ -206,6 +207,7 @@ class GameController < ApplicationController
@results.push([{ type: "error",
message: "You can't fight in your condition. You'll have to heal a wound." }])
char.stop_activity unless char.can_fight?
+ return
end
else
@results.push({ type: "message", body: "You slew the #{mon.name}." })