Darkly color charmed allies

This commit is contained in:
OldManAlpha 2025-06-13 23:31:45 -07:00
parent 1579b8c9a2
commit e261b53f65
2 changed files with 5 additions and 0 deletions

View File

@ -655,6 +655,10 @@ function HMUnitFrame:SetHealthBarValue(value)
if profile.ShowDebuffColorsOn == "Health Bar" then
r, g, b = self:GetDebuffColor()
end
if UnitIsCharmed(unit) and enemy then
r, g, b = 0.25, 0.25, 0.25
end
if r == nil then -- If there's no debuff color, proceed to normal colors
local hbc = enemy and profile.EnemyHealthBarColor or profile.HealthBarColor

View File

@ -402,6 +402,7 @@ function CreateUnitProxies()
UnitProxy("UnitName", _G.UnitName, "Unknown")
UnitProxy("UnitPowerType", _G.UnitPowerType, 0)
UnitProxy("UnitIsVisible", _G.UnitIsVisible, false)
UnitProxy("UnitIsCharmed", _G.UnitIsCharmed, false)
UnitProxy("TargetUnit", _G.TargetUnit, nil)
UnitProxy("FollowUnit", _G.FollowUnit, nil)
UnitProxy("AssistUnit", _G.AssistUnit, nil)