Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

COMBAT LOG EVENT

Last wiki revision 2023-08-16

Fires for Combat Log events such as a player casting a spell or an NPC taking damage.

  • COMBAT_LOG_EVENT only reflects the filtered events in the combat log window
  • COMBAT_LOG_EVENT_UNFILTERED (CLEU) is unfiltered, making it preferred for use by addons.

Both events have identical parameters. The event payload is returned from, or from if selected using.

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

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

Spell IDs are always on vanilla.

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

{| class="vertical-align-row"

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."
  • "ABSORB"
  • "BLOCK"
  • "DEFLECT"
  • "DODGE"
  • "EVADE"
  • "IMMUNE"
  • "MISS"
  • "PARRY"
  • "REFLECT"
  • "RESIST"
  • "BUFF"
  • "DEBUFF"
  • "Drowning"
  • "Falling"
  • "Fatigue"
  • "Fire"
  • "Lava"
  • "Slime"
  • }

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.

For the new event trace tool added in Patch 9.1.0 the following script can be loaded.

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, <font color="#4ec9b0">[spellID, spellName, spellSchool], casterGUID, casterName, casterFlags, casterRaidFlags, absorbSpellId, absorbSpellName, absorbSpellSchool, amount, critical

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

This log line is added when combat logging starts.

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 advancedCombatLogging Default: Whether we want advanced combat log data sent from the server (added in 5.4.2) to be enabled for meaningful values.

  • [[File:COMBAT_LOG_EVENT_advancedCombatLogging.png]]

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

These coords are also returned from and (provided the player is not in an instanced area).

Some events can have multiple values for a param, delimited by a vertical bar, for example for respectively. This is the case when spells use more than one powertype to cast. 12/27 20:40:53.015 SPELL_CAST_SUCCESS,Player-3686-09B3C091,"Katara-Antonidas",0x514,0x0,Vehicle-0-4252-2450-10829-175732-00004A11DB,"Sylvanas Windrunner",0x10a48,0x0,1943,"Rupture",0x1,Player-3686-09B3C091,0000000000000000,55660,55660,2018,321,689,8046,<font color="#ecbc2a">3|4,120|5,120|5,25|5 ,230.09,-841.17,2002,3.8727,249

For the following events, is changed with (possibly) 11/18 21:07:31.950 PARTY_KILL,Player-3686-070D56DD,"Môrclen-Antonidas",0x10512,0x0,Creature-0-1465-2450-15939-178008-000016B283,"Decrepit Orb",0xa48,0x0,<font color="#ecbc2a">0 10/26 21:06:20.604 SPELL_INSTAKILL,Creature-0-1469-2450-16377-99773-000078519D,"Bloodworm",0x2114,0x0,Creature-0-1469-2450-16377-99773-000078519D,"Bloodworm",0x2114,0x0,197509,"Bloodworm",0x20,<font color="#ecbc2a">0 10/26 21:18:26.917 UNIT_DIED,0000000000000000,nil,0x80000000,0x80000000,Creature-0-1469-2450-16377-99773-0000785473,"Bloodworm",0x2114,0x0,<font color="#ecbc2a">0 10/26 21:18:22.056 UNIT_DESTROYED,0000000000000000,nil,0x80000000,0x80000000,Creature-0-1469-2450-16377-26125-0000785441,"Risen Ghoul",0x2114,0x0,<font color="#ecbc2a">0

This is missing the param. 10/26 20:45:44.932 SPELL_AURA_REFRESH,Player-3686-0672A7D3,"Slivered-Antonidas",0x511,0x0,Player-3686-0672A7D3,"Slivered-Antonidas",0x511,0x0,21562,"Power Word: Fortitude",0x2,BUFF

This has an additional 9th suffix param 10/26 21:06:21.326 SPELL_HEAL_ABSORBED,Vehicle-0-1469-2450-16377-175732-0000784ACE,"Sylvanas Windrunner",0x10a48,0x0,Player-3686-0672A7D3,"Slivered-Antonidas",0x511,0x0,347704,"Veil of Darkness",0x20,Player-3686-0672A7D3,"Slivered-Antonidas",0x511,0x0,77489,"Echo of Light",0x2,104,<font color="#ecbc2a">667

  • SWING_DAMAGE, SPELL_DAMAGE, SPELL_HEAL, SPELL_PERIODIC_DAMAGE, and SPELL_PERIODIC HEAL: These have an additional 2nd suffix parameter, . This is the amount before critical strike bonus, and before percent modifiers on the target, including effects like damage reduction from armor, Chaos Brand, Mortal Strike, etc.
  • SWING_DAMAGE: is the source unit. This event is not guaranteed to fire, in that case SWING_MISSED would fire or nothing at all.
  • SWING_DAMAGE_LANDED: is the dest unit. This event is exclusive to the advanced combat log and always fires.

11/18 20:44:41.889 SPELL_ENERGIZE,Player-3686-065B1FFB,"Withered-Antonidas",0x511,0x0,Player-3686-065B1FFB,"Withered-Antonidas",0x511,0x0,336637,"Grounding Breath",0x1,Player-3686-065B1FFB,0000000000000000,58296,58296,2246,2160,687,243,0,43673,50000,0,243.55,-868.29,2002,2.3365,248,1900.0000,0.0000,0,<font color="#ecbc2a">50000

  • SPELL_ENERGIZE: This has an additional 4th suffix param, possibly

11/18 22:59:04.817 SPELL_DRAIN,Vehicle-0-1465-2450-15939-178072-000016CA7A,"Anduin Wrynn",0xa48,0x0,Vehicle-0-1465-2450-15939-178072-000016CA7A,"Anduin Wrynn",0xa48,0x0,357730,"Blasphemy",0x2,Vehicle-0-1465-2450-15939-178072-000016CA7A,0000000000000000,36198842,36339500,0,0,1071,0,0,0,2568,0,-246.06,-1280.08,2004,4.3350,62,5000,0,0,<font color="#ecbc2a">2568

  • SPELL_DRAIN: This has an additional 4th suffix param, possibly

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, totalTime

  • : time in milliseconds, and including the time penalties for deaths

Emotes don't include a dest unit, compared to in-game events like. EMOTE: sourceGUID, sourcename, sourceflags, sourceraidflags, text EMOTE,Vehicle-0-1465-2450-15939-175732-000016A7D7,"Sylvanas Windrunner",0000000000000000,nil,|TInterface\ICONS\Achievement_Leader_Sylvanas.blp:20|t Sylvanas Windrunner gains |cFFFF0000|Hspell:347504|h[Windrunner]|h|r!

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

  • is 1 for a kill, 0 for a wipe
  • is in milliseconds.

The coords are the boundary box for the world map.

This logging feature was added on patch 7.0.3 <div style="max-width:calc(150px + 50vw); margin-left:2vw">

On a character without any Shadowlands-specific powers.

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

Source

https://warcraft.wiki.gg/wiki/COMBAT_LOG_EVENT · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.