From 52c9b51e8d43c875d4ddc2d5cdf4a1c0647150db Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 25 Oct 2022 21:15:16 -0500 Subject: [PATCH] Temp fix for error in 10.0 I need to find the new way to disable party frames, but this gets the addon loaded for now. --- modules/PlayerHealth.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/PlayerHealth.lua b/modules/PlayerHealth.lua index 387810a..afa8832 100644 --- a/modules/PlayerHealth.lua +++ b/modules/PlayerHealth.lua @@ -1430,9 +1430,11 @@ function PlayerHealth.prototype:HideBlizzardParty() -- Both Pitbull 4 and Xperl use these exact code, so we use it too. for i = 1, MAX_PARTY_MEMBERS do local party = _G['PartyMemberFrame'..i] - party:UnregisterAllEvents() - party:Hide() - party.Show = function() end + if party then + party:UnregisterAllEvents() + party:Hide() + party.Show = function() end + end end UIParent:UnregisterEvent('RAID_ROSTER_UPDATE')