Skip to content

Commit

Permalink
Update ElvUI_Extras.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
noname08662 authored Jan 10, 2025
1 parent ba43372 commit 24384bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElvUI_Extras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ function core:Tag(name, tagfunc, updatefunc)
self:SecureHook(frame, "UpdateAllElements", function(frame, event)
if not wrongEvents[event] and frame.unit then
local guid = UnitGUID(frame.unit)
if guid and guid ~= frame.lastGUID then
if guid ~= frame.lastGUID then
for _, updateFunc in pairs(nameUpdates) do
updateFunc(_, frame, frame.unit)
end
Expand All @@ -1055,7 +1055,7 @@ function core:Tag(name, tagfunc, updatefunc)
core:SecureHook(frame, "UpdateAllElements", function(frame, event)
if not wrongEvents[event] and frame.unit then
local guid = UnitGUID(frame.unit)
if guid and guid ~= frame.lastGUID then
if guid ~= frame.lastGUID then
for _, updateFunc in pairs(nameUpdates) do
updateFunc(_, frame, frame.unit)
end
Expand Down

0 comments on commit 24384bd

Please sign in to comment.