SuperWoW dependency fully removed

Read the Readme for more informations please.
This commit is contained in:
Meow
2026-03-02 13:05:22 +01:00
parent c7aca0de99
commit b91ef05a96
8 changed files with 87 additions and 94 deletions
+2 -6
View File
@@ -67,14 +67,11 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
local spellId = arg2
if eventCode == NORMAL_QUEUED or eventCode == NON_GCD_QUEUED or eventCode == ON_SWING_QUEUED then
-- Get spell texture from GetSpellRec (Nampower) or SpellInfo (SuperWoW fallback)
-- Get spell texture from GetSpellRec (Nampower)
local texture
if GetSpellRec then
local rec = GetSpellRec(spellId)
texture = rec and rec.spellIconID and GetSpellIconTexture(rec.spellIconID) or nil
elseif SpellInfo then
local _, _, tex = SpellInfo(spellId)
texture = tex
end
if texture then
@@ -112,8 +109,7 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
local iconID = rec.spellIconID
texture = iconID and GetSpellIconTexture(iconID) or nil
end
elseif SpellInfo then
name, rank, texture = SpellInfo(spellId)
end
if not name then
name, rank = SafeGetSpellNameAndRank(spellId)