Start WoD support, handle the updated QuestInfoFrame
Adrian L Lange [08-19-14 - 15:05]
Start WoD support, handle the updated QuestInfoFrame
diff --git a/QuickQuest.lua b/QuickQuest.lua
index 6ed8667..a4063a0 100644
--- a/QuickQuest.lua
+++ b/QuickQuest.lua
@@ -1,3 +1,5 @@
+local WoD = select(4, GetBuildInfo()) >= 6e4
+
local QuickQuest = CreateFrame('Frame')
QuickQuest:SetScript('OnEvent', function(self, event, ...) self[event](...) end)
@@ -231,7 +233,11 @@ QuickQuest:Register('QUEST_COMPLETE', function()
end
if(bestIndex) then
- _G['QuestInfoItem' .. bestIndex]:Click()
+ if(WoD) then
+ QuestInfoFrame.rewardsFrame.RewardButton[bestIndex]:Click()
+ else
+ _G['QuestInfoItem' .. bestIndex]:Click()
+ end
end
end
end)