-- range check (doesn't have an event) frames can be marked constantly visible
if not frame.constant then
local inrange, checked = UnitInRange(unit);
- local inphase = UnitInPhase(unit);
- if (checked and not inrange) or not inphase then
+ local inphase = UnitPhaseReason(unit);
+ if (checked and not inrange) or inphase then
frame:SetAlpha(0.55);
else
frame:SetAlpha(1);