diff options
author | David Gay <david@davidgay.org> | 2021-07-14 18:26:20 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-14 18:26:35 -0400 |
commit | b43c0a475b29a26e0c425328ee28d8dcfc64bff6 (patch) | |
tree | 2d79d1251b13f2b89f979960bffa6966b4d55028 /app/controllers | |
parent | b4f643b1ce4613dcd18e71a6f31a84293ac10857 (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')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
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 |