From 6f42ca6ab52ed3fef24e4b401a6ac819fbaf27a3 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Wed, 9 Apr 2025 21:49:52 -0700 Subject: [PATCH] hide duplicate mobs --- ui.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui.lua b/ui.lua index b1c1241..5811af6 100644 --- a/ui.lua +++ b/ui.lua @@ -692,8 +692,10 @@ ui:SetScript("OnUpdate", function() -- hide any remaining unit frames for col, rows in pairs(ui.unitFrames) do for row, unitFrame in pairs(rows) do - if unitFrame and not displayedGuids[unitFrame.guid] then - unitFrame:Hide() + if unitFrame then + if not displayedGuids[unitFrame.guid] then + unitFrame:Hide() + end end end end