mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +00:00
Replace QueueFunction and RunOOC with RunNextFrame
RunOOC never waited for combat to end; it ran its function on the next frame. QueueFunction ran one function every 0.2 seconds. Each caller now defers with ClassicAPI's RunNextFrame. The loot roll announcement sends its name lists and the roll directly. The 0.2 second spacing did not help with the server's chat flood limit (10 messages less than a second apart), and an announcement is at most four messages.
This commit is contained in:
@@ -79,7 +79,7 @@ pfUI:RegisterModule("superwow", function ()
|
||||
-- SuperWoW release past 1.5
|
||||
local swVersion = tonumber(SUPERWOW_VERSION)
|
||||
if swVersion and swVersion >= 1.5 then
|
||||
QueueFunction(function()
|
||||
RunNextFrame(function()
|
||||
local pfCombatText_AddMessage = _G.CombatText_AddMessage
|
||||
_G.CombatText_AddMessage = function(message, a, b, c, d, e, f)
|
||||
local match, _, hex = string.find(message, ".+ %[(0x.+)%]")
|
||||
|
||||
Reference in New Issue
Block a user