Change UpdateRange to always show dead units as opaque
This commit is contained in:
@@ -84,7 +84,9 @@ end
|
||||
|
||||
function UnitFrame:UpdateRange()
|
||||
local unit = self.unit
|
||||
if not UnitIsFriend("player", unit) and IsSpellInRange("Lightning Bolt", unit) ~= 1 then
|
||||
if UnitIsDead(unit) then
|
||||
self.secureFrame:SetAlpha(1.0)
|
||||
elseif not UnitIsFriend("player", unit) and IsSpellInRange("Lightning Bolt", unit) ~= 1 then
|
||||
self.secureFrame:SetAlpha(0.2)
|
||||
elseif UnitIsFriend("player", unit) and IsSpellInRange("Healing Surge", unit) ~= 1 then
|
||||
self.secureFrame:SetAlpha(0.2)
|
||||
|
Reference in New Issue
Block a user