end |
|
------------------------------------------------------------------------------- |
-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 |
-- _, timestamp, event, hideCaster, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags, spellID, spellName, spellSchool, missType, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
-- _, timestamp, event, hideCaster, srcGUID, srcName, srcFlags, srcFlags2, dstGUID, dstName, dstFlags, dstFlags2, spellID, spellName, spellSchool, missType, ...) |
-- |
local flag, source, target, spell |
local msg, whisperTarget |
function addon:combatLogEvent(_, _, flag, _, _, source, _, _, target, _, _, spell, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 11 |
function addon:combatLogEvent(_, _, flag, _, _, source, _, _, _, target, _, _, _, spell, ...) |
-- 0 1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
if not db.spells[spell] then return end -- Spell not in database, quit |
|
local ws = db.spells[spell] |
|
if not ws.watched then return end -- Not being watched, quit |
if not ws.watched then return end -- Not being watched, quit |
|
if not (ws.anyFlag or ws.flags[flag]) then return end -- Doesn't match flags, quit |
|