diff --git a/modules/castbar.lua b/modules/castbar.lua index 8b498daa..0fc927e9 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -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) \ No newline at end of file