Skip to content

Commit

Permalink
database: support negative levels in quest links
Browse files Browse the repository at this point in the history
This allows for a negative value in the quest link for some quests in wotlk.
Example: https://www.wowhead.com/wotlk/quest=1528/call-of-water
  • Loading branch information
Bennylavaa authored Oct 16, 2024
1 parent 485148d commit b9317d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ function pfDatabase:GetQuestIDs(qid)
if GetQuestLink then
local questLink = GetQuestLink(qid)
if questLink then
local _, _, id = strfind(questLink, "|c.*|Hquest:([%d]+):([%d]+)|h%[(.*)%]|h|r")
local _, _, id = strfind(questLink, "|c.*|Hquest:([%d]+):([-]?[%d]+)|h%[(.*)%]|h|r")
if id then return { [1] = tonumber(id) } end
end
end
Expand Down

0 comments on commit b9317d6

Please sign in to comment.