From 228d4f99b47b8c99ef4d84dbc90e31aaf4dd09e1 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 19 Mar 2023 18:56:31 +0100 Subject: [PATCH] castbar: make spell rank visible again --- modules/castbar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index db22dbbc..d1fb219c 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -98,11 +98,13 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function () this:SetAlpha(1) - local rank = this.showrank and nameSubtext and nameSubtext ~= "" and string.format(" |cffaaffcc[%s]|r", nameSubtext) or "" + local spellname = this.showname and cast and cast .. " " or "" + local rank = this.showrank and nameSubtext and nameSubtext ~= "" and string.format("|cffaaffcc[%s]|r", nameSubtext) or "" + if this.endTime ~= endTime then this.bar:SetStatusBarColor(strsplit(",", C.appearance.castbar[(channel and "channelcolor" or "castbarcolor")])) this.bar:SetMinMaxValues(0, duration / 1000) - this.bar.left:SetText(this.showname and cast or "" .. rank) + this.bar.left:SetText(spellname .. rank) this.fadeout = nil this.endTime = endTime