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:
MarcelineVQ
2026-03-12 10:35:44 -07:00
parent 65bc234c08
commit e0da2791d9
2 changed files with 32 additions and 20 deletions
+7 -8
View File
@@ -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]