X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/1a61ccc411a4cd75256afe3baf9bcd47891c1df4..7e1fc6488f399d7cf18bb4b97d9582f9964975c6:/kehys/updater.lua diff --git a/kehys/updater.lua b/kehys/updater.lua index d7d3cb5..68015bb 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -14,6 +14,7 @@ local UnitGetIncomingHeals, UnitGetTotalAbsorbs = UnitGetIncomingHeals, UnitGetT 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; @@ -45,7 +46,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); - 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);