Fixed missing ranks.

- Added a new method to display spellrank when casting spells (nampower GetSpellRecField)
This commit is contained in:
Meow
2026-03-28 12:59:44 +01:00
parent 2f61716858
commit 956582ff08
+7 -2
View File
@@ -127,7 +127,12 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
texture = castData.icon
startTime = castData.startTime * 1000
endTime = castData.endTime * 1000
nameSubtext = ""
-- Try to get rank from spell DB via spellID (nameSubtext is not stored in libdebuff_casts)
if castData.spellID and GetSpellRecField then
nameSubtext = GetSpellRecField(castData.spellID, "rank") or ""
else
nameSubtext = ""
end
if castData.event == "CHANNEL" then
channel = cast
end
@@ -390,4 +395,4 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
UpdateMovable(pfUI.castbar.focus)
end
end)
end)