From 2963f7e1e0cd87f8f77838cfd822f8466b048dc6 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 7 Nov 2024 21:14:22 +0100 Subject: [PATCH] superwow: disable spell and enchant link workarounds --- modules/superwow.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/superwow.lua b/modules/superwow.lua index 15a52da6..075efbfd 100644 --- a/modules/superwow.lua +++ b/modules/superwow.lua @@ -2,7 +2,7 @@ -- https://github.com/balakethelock/SuperWoW pfUI:RegisterModule("superwow", "vanilla", function () - if SetAutoloot and SpellInfo then + if SetAutoloot and SpellInfo and not SUPERWOW_VERSION then -- Turn every enchanting link that we create in the enchanting frame, -- from "spell:" back into "enchant:". The enchant-version is what is -- used by all unmodified game clients. This is required to generate @@ -27,6 +27,9 @@ pfUI:RegisterModule("superwow", "vanilla", function () link = string.gsub(link, "enchant:", "spell:") HookGameTooltipSetHyperlink(self, link) end + + DEFAULT_CHAT_FRAME:AddMessage("|cffffffaaAn old version of SuperWoW was detected. Please consider updating:") + DEFAULT_CHAT_FRAME:AddMessage("-> https://github.com/balakethelock/SuperWoW/releases/") end local unitcast = CreateFrame("Frame")