Originally Posted by galvin
There is otherwise how does this code work?
https://wago.io/NormalStagger
This comes from the trigger1
The code is looking at the combatlog events, and looking for SPELL_ABSORBED
I also googled this and found some mods came across this event and they had to fix their mods.
But there's no documentation anywhere.
Code:
local time = select(1,...)
local type = select(2,...)
local destGUID = select(8,...)
if destGUID==aura_env.player then --grab only things that target me
local offset = 12
if type=="SPELL_ABSORBED" then --stagger's mitigation is all in absorb
if GetSpellInfo((select(offset, ...)))==(select(offset + 1, ...)) then
|
I guess than they did changed it:
Lua Code:
local function SPELL_ABSORBED(...)
local _, _, _, _, _, _, _, _, arg9 = ...
if type(arg9) == "number" then
-- Spell
local timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, srcSpellId, srcSpellName, srcSpellSchool, casterGUID, casterName, casterFlags, casterRaidFlags, spellId, spellName, spellSchool, absorbed = ...
else
-- Melee/Ranged
local timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, casterGUID, casterName, casterFlags, casterRaidFlags, spellId, spellName, spellSchool, absorbed = ...
end
end
If the 9th parameter is a number then it's a spell, it not then it's from melee/ranged attacks.