View Single Post
01-26-19, 05:28 AM   #2
d87
A Chromatic Dragonspawn
 
d87's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 163
CLEU doesn't tell aura durations, so you'll either have to use static values or use UNIT_AURA anyway, which is still complicated because combat log events happen before updated auras become available to UnitAura

Also i'm pretty sure that since 8.0 you have to use CombatLogGetCurrentEventInfo() function to get CLEU args. Like this:

function NugRunning.COMBAT_LOG_EVENT_UNFILTERED( self, event )

local timestamp, eventType, hideCaster,
srcGUID, srcName, srcFlags, srcFlags2,
dstGUID, dstName, dstFlags, dstFlags2,
spellID, spellName, spellSchool, auraType, amount = CombatLogGetCurrentEventInfo()

...
Unless you need to know what's happening with targets that are not assigned to any UnitID, you better stick with UNIT_AURA

Last edited by d87 : 01-26-19 at 05:36 AM.
  Reply With Quote