COMBAT LOG EVENT

Fires for Combat Log events such as a player casting a spell or an NPC taking damage. The event payload is returned from.

COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED (CLEU) have identical parameters, the difference is that COMBAT_LOG_EVENT only reflects the filtered events in the combat log chat window. This makes CLEU preferred for use by addons.

Base Parameters

 * timestamp : number - Unix Time in seconds with milliseconds precision, for example . Similar to  and can be passed as the second argument of.
 * subevent : string - The combat log event, for example.
 * hideCaster : boolean - Returns true if the source unit should be hidden in the Blizzard combat log.
 * guid : string - Globally unique identifier for units (NPCs, players, pets, etc), for example.
 * name : string - Name of the unit.
 * flags : number - Contains the flag bits for a unit's type, controller, reaction and affiliation. For example  = 0x10A48: Unit is the current target, is an NPC, the controller is an NPC, reaction is hostile and affiliation is outsider.
 * raidFlags : number - Contains the raid flag bits for a unit's raid target icon.

Events
Combat log events consist of a prefix and suffix part, with their related parameters. For a full example see.

Prefixes
Spell IDs are always  on classic_era.

Suffixes
The parameters for,  ,  , and   are true/false flags.

Parameter Values
{| class="vertical-align-row"

Failed Type
See the SPELL_FAILED GlobalStrings for a full list of failed types.
 * "A more powerful spell is already active"
 * "Another action is in progress"
 * "Can't do that while asleep"
 * "Can't do that while charmed"
 * "Can't do that while confused"
 * "Can't do that while fleeing"
 * "Can't do that while horrified"
 * "Can't do that while incapacitated"
 * "Can't do that while moving"
 * "Can't do that while silenced"
 * "Can't do that while stunned"
 * "Interrupted"
 * "Invalid target"
 * "No target"
 * "Not enough energy"
 * "Not enough mana"
 * "Not enough rage"
 * "Out of range"
 * "Target needs to be in front of you."
 * "Target not in line of sight"
 * "Target too close"
 * "You are dead"
 * "You are in combat"
 * "You are in shapeshift form"
 * "You are unable to move"
 * "You can't do that yet"
 * "You must be behind your target."

Miss Type

 * "ABSORB"
 * "BLOCK"
 * "DEFLECT"
 * "DODGE"
 * "EVADE"
 * "IMMUNE"
 * "MISS"
 * "PARRY"
 * "REFLECT"
 * "RESIST"

Aura Type

 * "BUFF"
 * "DEBUFF"

Environmental Type

 * "Drowning"
 * "Falling"
 * "Fatigue"
 * "Fire"
 * "Lava"
 * "Slime"
 * }

Payload
This comparison illustrates the difference between swing and spell events, e.g. the  suffix parameter is on arg12 for SWING_DAMAGE and arg15 for SPELL_DAMAGE.

Event Trace
The /etrace command does not show the event payload anymore but this script by nebula restores that functionality.

For the new event trace tool present in World of Warcraft: Classic and Patch 9.1.0 the following script can be loaded instead.

SPELL_ABSORBED
This relatively new subevent fires in addition to SWING_MISSED / SPELL_MISSED which already have the "ABSORB"  and same. It optionally includes the spell payload if triggered from what would be SPELL_DAMAGE.

timestamp, subevent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, [spellID, spellName, spellSchool], casterGUID, casterName, casterFlags, casterRaidFlags, absorbSpellId, absorbSpellName, absorbSpellSchool, amount, critical

Advanced Combat Log
Combat log messages may be written to the  file for external parsing purposes. This feature can be enabled with or toggled with the /combatlog slash command. Combat logging was added on patch 1.7.0

COMBAT_LOG_VERSION
This log line is added when combat logging starts.

Advanced parameters
There can be up to 39 parameters, in order:
 * 9 base params (subevent, source and dest unit)
 * 0 to 3 prefix params (spell/environmental)
 * 17 advanced params
 * 0 to 10 suffix params

Advanced parameters require CVar (added in 6.0.2) to be enabled for meaningful values.

Combat Events
Example for a low level priest in Elwynn Forest successfully casting a spell.


 * SWING_DAMAGE:  is the source unit. This event does not always fire and can be replaced with SWING_MISSED.
 * SWING_DAMAGE_LANDED:  is the dest unit. This event is exclusive to the advanced combat log and always fires.

World Coords
These coords are also returned from and

CHALLENGE_MODE_START
CHALLENGE_MODE_START: zoneName, instanceID, challengeModeID, keystoneLevel, [affixID, ...] CHALLENGE_MODE_START,"Mists of Tirna Scithe",2290,375,11,[9,122,4,121]

CHALLENGE_MODE_END: instanceID, success, keystoneLevel, time

ENCOUNTER_START
ENCOUNTER_START: encounterID, encounterName, difficultyID, groupSize, instanceID ENCOUNTER_START,1146,"Randolph Moloch",1,5,34

is 1 for a kill, 0 for a wipe

MAP_CHANGE
The coords are the boundary box for the world map.

COMBATANT_INFO
This logging feature was added on patch 7.0.3 

On a character without any Shadowlands-specific powers.



On a character with Shadowlands-specific powers, the Artifact Trait part is replaced with: