X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/b00e4e3ae9ca9e8837d92d8f594140ab17d4cc68..f28f61f877c54fbfb56a1d595b9b2a896a1e5083:/kehys/updater.lua diff --git a/kehys/updater.lua b/kehys/updater.lua index 347096c..72c51ed 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -48,8 +48,8 @@ function addon.FrameUpdate(frame) -- 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);