From c9dd6404d30962b2555ed2420018f97951926e7d Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Thu, 22 Jan 2026 16:24:08 +0100 Subject: [PATCH] fixed agro and combat glow fixed agro and combat glow --- api/unitframes.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 0e6b99c8..762516e8 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1104,6 +1104,16 @@ function pfUI.uf.OnUpdate() else this.combat:Hide() end + + if this.config.glowaggro == "1" and pfUI.api.UnitHasAggro(this.label .. this.id) > 0 then + this.glow:SetBackdropBorderColor(1,.2,0) + this.glow:Show() + elseif this.config.glowcombat == "1" and UnitAffectingCombat(this.label .. this.id) then + this.glow:SetBackdropBorderColor(1,1,.2) + this.glow:Show() + else + this.glow:Hide() + end end -- trigger eventless actions (online/offline/range) @@ -1129,16 +1139,6 @@ function pfUI.uf.OnUpdate() pfUI.uf:RefreshUnitState(this) pfUI.uf:RefreshIndicators(this) - if this.config.glowaggro == "1" and pfUI.api.UnitHasAggro(this.label .. this.id) > 0 then - this.glow:SetBackdropBorderColor(1,.2,0) - this.glow:Show() - elseif this.config.glowcombat == "1" and UnitAffectingCombat(this.label .. this.id) then - this.glow:SetBackdropBorderColor(1,1,.2) - this.glow:Show() - else - this.glow:Hide() - end - -- update everything on eventless frames (targettarget, etc) if this.tick then pfUI.uf:RefreshUnit(this, "all")