local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected;
local UnitGetTotalHealAbsorbs = UnitGetTotalHealAbsorbs;
local InCombatLockdown, IsResting = InCombatLockdown, IsResting;
+local UnitInRange, UnitInPhase = UnitInRange, UnitInPhase;
local dispelcolor = addon.Colors.OverlayColorDispel;
local charmcolor = addon.Colors.OverlayColorCharm;
-- range check (doesn't have an event) frames can be marked constantly visible
if not frame.constant then
local inrange, checked = UnitInRange(unit);
- if checked and not inrange then
+ local inphase = UnitInPhase(unit);
+ if (checked and not inrange) or not inphase then
frame:SetAlpha(0.55);
else
frame:SetAlpha(1);