git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
7e6c1d4 - Detach indicators from protected frames
[wowui.git]
/
OmaRF
/
UpdateNameHook.lua
diff --git
a/OmaRF/UpdateNameHook.lua
b/OmaRF/UpdateNameHook.lua
index
293d8c0
..
8165c7d
100644
(file)
--- a/
OmaRF/UpdateNameHook.lua
+++ b/
OmaRF/UpdateNameHook.lua
@@
-1,6
+1,10
@@
local UnitName = UnitName;
local UnitName = UnitName;
-hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
+local function nameHook(frame)
+ if InCombatLockdown() then
+ table.insert(OmaRF.ooc_queue, {func = nameHook, args = {frame}});
+ return;
+ end
-- allowClassColorsForNPCs only in regular raid frames,
-- match only to them
if frame.optionTable.allowClassColorsForNPCs ~= nil then
-- allowClassColorsForNPCs only in regular raid frames,
-- match only to them
if frame.optionTable.allowClassColorsForNPCs ~= nil then
@@
-11,4
+15,5
@@
hooksecurefunc("CompactUnitFrame_UpdateName", function(frame)
frame.name:SetText(name);
end
end
frame.name:SetText(name);
end
end
-end);
+end
+hooksecurefunc("CompactUnitFrame_UpdateName", nameHook);