Fix dpslog dynamic slot search and environmental damage params
Resize hook now expands event array to 801 slots. Dynamic slot search scans from slot 650 for first empty entry (compatible with SuperWoW). Fixed ProcessEnvironmentalDamage parameter order — Ghidra mislabeled damageSource as damage. Lua chat output now fires only on first subevent.
This commit is contained in:
@@ -484,17 +484,16 @@ eventFrame:SetScript("OnEvent", function()
|
||||
local subevent = arg1
|
||||
if not subevent then return end
|
||||
|
||||
-- Chat output
|
||||
local chatHandler = chatHandlers[subevent]
|
||||
if chatHandler then
|
||||
chatHandler(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage(format("|cffccccccUNHANDLED|r %s", subevent))
|
||||
end
|
||||
|
||||
-- Tracker update (first encounter only)
|
||||
local idx = subeventIndex[subevent]
|
||||
if idx and not seen[idx] then
|
||||
-- Chat output (first occurrence only)
|
||||
local chatHandler = chatHandlers[subevent]
|
||||
if chatHandler then
|
||||
chatHandler(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10)
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage(format("|cffccccccUNHANDLED|r %s", subevent))
|
||||
end
|
||||
seen[idx] = true
|
||||
seenCount = seenCount + 1
|
||||
local formatter = argFormatters[subevent]
|
||||
|
||||
Reference in New Issue
Block a user