From b72247c8dab14c6fc938f80dff5b5c130b65ec64 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 6 Nov 2024 23:07:01 +0100 Subject: [PATCH] superwow: convert enchant links to spell links --- modules/superwow.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/superwow.lua b/modules/superwow.lua index 6130739a..a3658ab0 100644 --- a/modules/superwow.lua +++ b/modules/superwow.lua @@ -1,6 +1,16 @@ -- Compatibility layer to use castbars provided by SuperWoW: -- https://github.com/balakethelock/SuperWoW pfUI:RegisterModule("superwow", "vanilla", function () + + -- Allow to click on AtlasLoot links while using SuperWoW + -- I don't know whats going on there, I just want to be able to + -- click those links in chat. I haven't analysed it any further. + local HookSetItemRef = SetItemRef + _G.SetItemRef = function(link, text, button) + link = string.gsub(link, "enchant:", "spell:") + HookSetItemRef(link, text, button) + end + local unitcast = CreateFrame("Frame") unitcast:RegisterEvent("UNIT_CASTEVENT") unitcast:SetScript("OnEvent", function()