summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-07-14 18:26:20 -0400
committerDavid Gay <david@davidgay.org>2021-07-14 18:26:35 -0400
commitb43c0a475b29a26e0c425328ee28d8dcfc64bff6 (patch)
tree2d79d1251b13f2b89f979960bffa6966b4d55028 /app/controllers/application_controller.rb
parentb4f643b1ce4613dcd18e71a6f31a84293ac10857 (diff)
Prevent characters from starting or finishing an activity that might result in combat if the character is at max wounds
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 607fe6e..52e9baf 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -21,7 +21,7 @@ class ApplicationController < ActionController::Base
if current_char.start_activity(activity, queued_actions: queued_actions)
redirect_to character_path(current_char)
else
- message = "You can't do that. Check the costs and requirements."
+ message = "You can't do that. Check the costs and requirements. Also, you can't do anything that might result in combat if you're at max wounds."
flash[:alert] = message.strip
redirect_back(fallback_location: character_path(current_char))
end