Fires when a combat log event is received. This event fires for all combat events visible to the player; COMBAT_LOG_EVENT fires only for combat log events which match the currently defined filters.

See the chapter "Responding to the Combat Log and Threat Information" for details.

Signature:

timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ... = ()

Returns:

  • timeStamp - The time on the server that the event occurred (number)
  • event - The name of the combat sub-event that occurred (string)
  • hideCaster - The purpose of this boolean flag is currently unknown (boolean)
  • sourceGUID - A string containing the hexadecimal representation of the source of the event's GUID (string, GUID)
  • sourceName - The name of the source of the event (string)
  • sourceFlags - A bitfield containing information about the source of the event (number, bitfield)
  • sourceRaidFlags - Added in Patch 4.2 (number, bitfield)
  • destGUID - A string containing the hexadecimal representation of the destination of the event's GUID (string, GUID)
  • destName - The name of the destination of the event (string)
  • destFlags - A bitfield containing information about the destination of the event (number, bitfield)
  • destRaidFlags - Added in Patch 4.2 (number, bitfield)
  • ... - A list of additional arguments, dependent on the particular combat sub-event. See Chapter 21 for more detailed information (varies)