Fix tooltip error for zone-complete trigger objectives (quest 50150)
_RegisterObjectiveTooltips was only silently skipping objectives with Type == 'event'. Quest 50150 'Storm Peak Orders' uses a server-tracked zone-completion trigger objective which has no spawnList and no Id -- the server sends it with a type like 'monster' not 'event'. Broaden the guard: any objective with no spawnList AND no Id has nothing for Questie to draw. Mark hasRegisteredTooltips = true and return silently. Objectives with no spawnList but a valid Id still error so missing data is reported.
This commit is contained in:
@@ -1292,9 +1292,10 @@ _RegisterObjectiveTooltips = function(objective, questId, blockItemTooltips)
|
||||
objective.hasRegisteredTooltips = true
|
||||
end
|
||||
else
|
||||
-- No spawnList is expected for server-tracked event objectives (e.g. triggerEnd with no coordinates).
|
||||
-- Mark as registered so this path is not re-entered, and return silently.
|
||||
if objective.Type == "event" then
|
||||
-- No spawnList and no Id means there is nothing Questie can draw for this objective.
|
||||
-- This covers server-tracked trigger objectives (e.g. "complete N quests in zone" for
|
||||
-- quest 50150) which may have any objectiveType from the server, not just "event".
|
||||
if not objective.Id then
|
||||
objective.hasRegisteredTooltips = true
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user