Skip to content

Commit

Permalink
Core/BossPrototype: Target events should only send valid GUIDs in cal…
Browse files Browse the repository at this point in the history
…lbacks (#1418)
  • Loading branch information
ntowle committed Jul 14, 2023
1 parent 91d6e9a commit 0941374
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/BossPrototype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0941374

Please sign in to comment.