hide duplicate mobs

This commit is contained in:
pepopo978
2025-04-09 21:49:52 -07:00
parent 299f94b912
commit 6f42ca6ab5
+4 -2
View File
@@ -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