From 0941374e0595c9be80dd6d2b54da5bbdc57d841d Mon Sep 17 00:00:00 2001 From: Nick Towle Date: Fri, 14 Jul 2023 19:13:48 -0400 Subject: [PATCH] Core/BossPrototype: Target events should only send valid GUIDs in callbacks (#1418) --- Core/BossPrototype.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/BossPrototype.lua b/Core/BossPrototype.lua index 2d33dab2a9..14e3a227be 100644 --- a/Core/BossPrototype.lua +++ b/Core/BossPrototype.lua @@ -1168,27 +1168,27 @@ end do function boss:UPDATE_MOUSEOVER_UNIT(event) local guid = UnitGUID("mouseover") - if not myGroupGUIDs[guid] then + if guid and not myGroupGUIDs[guid] then self[self.targetEventFunc](self, event, "mouseover", guid) end end function boss:UNIT_TARGET(event, unit) local unitTarget = unit.."target" local guid = UnitGUID(unitTarget) - if not myGroupGUIDs[guid] then + if guid and not myGroupGUIDs[guid] then self[self.targetEventFunc](self, event, unitTarget, guid) end if self.targetEventFunc then -- Event is still registered, continue guid = UnitGUID(unit) - if not myGroupGUIDs[guid] then + if guid and not myGroupGUIDs[guid] then self[self.targetEventFunc](self, event, unit, guid) end end end function boss:NAME_PLATE_UNIT_ADDED(event, unit) local guid = UnitGUID(unit) - if not myGroupGUIDs[guid] then + if guid and not myGroupGUIDs[guid] then self[self.targetEventFunc](self, event, unit, guid) end end