From b24e58990f3fdaa83a3b139e067dcd9f8f25db15 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 24 Aug 2017 18:49:19 +0200 Subject: [PATCH] infight: only show on existing and visible frames --- modules/infight.lua | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/modules/infight.lua b/modules/infight.lua index 8c5666cf..a155d768 100644 --- a/modules/infight.lua +++ b/modules/infight.lua @@ -74,10 +74,21 @@ pfUI:RegisterModule("infight", function () end if C.appearance.infight.common == "1" then - pfUI.infight:CreateGlow("player") - pfUI.infight:CreateGlow("target") - pfUI.infight:CreateGlow("targettarget") - pfUI.infight:CreateGlow("pet") + if pfUI.uf.player and pfUI.uf.player:IsShown() then + pfUI.infight:CreateGlow("player") + end + + if pfUI.uf.target and pfUI.uf.target:IsShown() then + pfUI.infight:CreateGlow("target") + end + + if pfUI.uf.targettarget and pfUI.uf.targettarget:IsShown() then + pfUI.infight:CreateGlow("targettarget") + end + + if pfUI.uf.pet and pfUI.uf.pet:IsShown() then + pfUI.infight:CreateGlow("pet") + end end if C.appearance.infight.group == "1" then