From 7e1fc6488f399d7cf18bb4b97d9582f9964975c6 Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Sat, 23 May 2020 22:15:05 +0300 Subject: [PATCH] Dim raid frames in another phase --- kehys/updater.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5