superwow: disable spell and enchant link workarounds

This commit is contained in:
shagu
2024-11-07 21:14:22 +01:00
parent 9678277b5c
commit 2963f7e1e0
+4 -1
View File
@@ -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")