mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 05:16:37 +00:00
Ignore optionals when finding task step (#3836)
This fixes optional elements from being required to unlock the next step when using the step system.
This commit is contained in:
+3
-1
@@ -359,9 +359,11 @@ namespace Tasks {
|
||||
if (activity_states[i].activity_state != ActivityCompleted)
|
||||
{
|
||||
completed_ids[i] = false;
|
||||
current_step = std::min(current_step, el.step);
|
||||
|
||||
// step system advances to next step if only optionals active
|
||||
if (!el.optional)
|
||||
{
|
||||
current_step = std::min(current_step, el.step);
|
||||
result.is_task_complete = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user