Fix for bug report #6

- Fixes castbar not showing up properly when "ZOOM factor" in nameplates is activated.
- Possible fix for nampower error appearing.
This commit is contained in:
Meow
2026-01-09 18:38:43 +01:00
parent c775bdb648
commit 56d4e95868
2 changed files with 24 additions and 10 deletions
+4 -1
View File
@@ -112,7 +112,10 @@ pfUI:RegisterModule("nampower", "vanilla", function ()
spellName, spellRank, texture = SpellInfo(spellId)
end
if not spellName and GetSpellNameAndRankForId then
spellName, spellRank = GetSpellNameAndRankForId(spellId)
local success, name, rank = pcall(GetSpellNameAndRankForId, spellId)
if success then
spellName, spellRank = name, rank
end
end
if spellName then