summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/game_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb
index 4f1ca0f..40d8991 100644
--- a/app/controllers/game_controller.rb
+++ b/app/controllers/game_controller.rb
@@ -173,6 +173,7 @@ class GameController < ApplicationController
@results.push({ type: "message", body: "You were defeated! You retreat, wounded." })
char.wounds += 1
char.save!
+ char.stop_activity unless char.can_fight?
else
@results.push({ type: "message", body: "You slew the #{mon.name}." })
mon.whatnot[:awards]&.each do |award_data|