# HG changeset patch # User Caleb Atherton # Date 1544570013 18000 # Node ID 89fab01eaba0a8e36c345eee7c42be8f9d039e6d # Parent 6b4afad835158d280f42025d58f1818c7a15cbc7 Fixed WoWDBProfiler for Patch 8.1.0. diff -r 6b4afad83515 -r 89fab01eaba0 Main.lua --- a/Main.lua Fri Oct 05 20:40:17 2018 -0400 +++ b/Main.lua Tue Dec 11 18:13:33 2018 -0500 @@ -987,10 +987,12 @@ -- Record data for a specific quest ID; reward data must be available or nothing will be recorded -- When we reach this point, we've already checked for a valid mapID, questID, quest data, and worldQuestType local function RecordWorldQuestData(quest_id, api_data_table) + local xp, _ = _G.GetQuestLogRewardXP(quest_id) + -- Ensure we have location data and rewards (barely readable so putting it on multiple lines) -- (Honor is built in to the quest; it is not a sign rewards have been loaded) if not api_data_table or not api_data_table.x or not api_data_table.y or not api_data_table.mapID or not - (_G.GetQuestLogRewardXP(quest_id) > 0 or _G.GetNumQuestLogRewardCurrencies(quest_id) > 0 + (xp > 0 or _G.GetNumQuestLogRewardCurrencies(quest_id) > 0 or _G.GetNumQuestLogRewards(quest_id) > 0 or _G.GetQuestLogRewardMoney(quest_id) > 0) then --or _G.GetQuestLogRewardArtifactXP(quest_id) > 0) return @@ -1007,7 +1009,7 @@ -- Record simple rewards (XP, money, artifact XP, honor) entry["rewards"] = {} - entry["rewards"]["xp"] = tonumber(_G.GetQuestLogRewardXP(quest_id)) or 0 + entry["rewards"]["xp"] = tonumber(xp) or 0 entry["rewards"]["money"] = tonumber(_G.GetQuestLogRewardMoney(quest_id)) or 0 --local actualXP, scaling = _G.GetQuestLogRewardArtifactXP(quest_id) --entry["rewards"]["artifact_xp"] = ("%d:%d"):format(tonumber(actualXP) or 0, tonumber(scaling) or 0)