summaryrefslogtreecommitdiff
path: root/app/controllers/activities_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/activities_controller.rb')
-rw-r--r--app/controllers/activities_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/activities_controller.rb b/app/controllers/activities_controller.rb
index 934f617..43ee1b0 100644
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -5,8 +5,7 @@ class ActivitiesController < ApplicationController
def start
@activity = Activity.find(params[:id])
- if current_char.can_do_activity?(@activity)
- current_char.start_activity(@activity)
+ if current_char.start_activity(@activity, queued_actions: params[:queued_actions])
redirect_to activity_path(@activity)
else
flash[:alert] = "You can't do that. Make sure you have the items and meet the requirements."