From 18059ffbb71972607c72d3597838f57f124843fe Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Tue, 18 Aug 2026 04:29:33 -0500 Subject: [PATCH] Class-color aura caster name in tooltips --- modules/tooltip.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/tooltip.lua b/modules/tooltip.lua index ed366424..97cae320 100644 --- a/modules/tooltip.lua +++ b/modules/tooltip.lua @@ -372,6 +372,15 @@ pfUI:RegisterModule("tooltip", function () caster = UnitNameFromGUID(aura.sourceGUID) end if caster and caster ~= "" then + local classToken + if aura.sourceUnit and UnitIsPlayer(aura.sourceUnit) then + classToken = UnitClassBase(aura.sourceUnit) + elseif aura.sourceGUID then + classToken = select(2, GetPlayerInfoByGUID(aura.sourceGUID)) + end + if classToken then + caster = PFUI_CLASS_COLORS[classToken]:WrapTextInColorCode(caster) + end self:AddLine(T["Cast by"] .. ": " .. caster, .25,.5,1) end end