From 956582ff0801f9877ad463f233610fa74b21e169 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 28 Mar 2026 12:59:44 +0100 Subject: [PATCH] Fixed missing ranks. - Added a new method to display spellrank when casting spells (nampower GetSpellRecField) --- modules/castbar.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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