mirror of
https://github.com/OldManAlpha/Puppeteer.git
synced 2025-11-28 23:48:35 +00:00
Darkly color charmed allies
This commit is contained in:
parent
1579b8c9a2
commit
e261b53f65
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user