Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

UnitFlag

From WoWWiki

Jump to: navigation, search
Main Menu


Contents

Constants

Constant bitfield
Affiliation
COMBATLOG_OBJECT_AFFILIATION_MINE0x00000001
COMBATLOG_OBJECT_AFFILIATION_PARTY0x00000002
COMBATLOG_OBJECT_AFFILIATION_RAID0x00000004
COMBATLOG_OBJECT_AFFILIATION_OUTSIDER0x00000008
COMBATLOG_OBJECT_AFFILIATION_MASK0x0000000F
Reaction
COMBATLOG_OBJECT_REACTION_FRIENDLY0x00000010
COMBATLOG_OBJECT_REACTION_NEUTRAL0x00000020
COMBATLOG_OBJECT_REACTION_HOSTILE0x00000040
COMBATLOG_OBJECT_REACTION_MASK0x000000F0
Ownership
COMBATLOG_OBJECT_CONTROL_PLAYER0x00000100
COMBATLOG_OBJECT_CONTROL_NPC0x00000200
COMBATLOG_OBJECT_CONTROL_MASK0x00000300
Unit type
COMBATLOG_OBJECT_TYPE_PLAYER0x00000400
COMBATLOG_OBJECT_TYPE_NPC0x00000800
COMBATLOG_OBJECT_TYPE_PET0x00001000
COMBATLOG_OBJECT_TYPE_GUARDIAN0x00002000
COMBATLOG_OBJECT_TYPE_OBJECT0x00004000
COMBATLOG_OBJECT_TYPE_MASK0x0000FC00
Special cases (non-exclusive)
COMBATLOG_OBJECT_TARGET0x00010000
COMBATLOG_OBJECT_FOCUS0x00020000
COMBATLOG_OBJECT_MAINTANK0x00040000
COMBATLOG_OBJECT_MAINASSIST0x00080000
COMBATLOG_OBJECT_RAIDTARGET10x00100000
COMBATLOG_OBJECT_RAIDTARGET20x00200000
COMBATLOG_OBJECT_RAIDTARGET30x00400000
COMBATLOG_OBJECT_RAIDTARGET40x00800000
COMBATLOG_OBJECT_RAIDTARGET50x01000000
COMBATLOG_OBJECT_RAIDTARGET60x02000000
COMBATLOG_OBJECT_RAIDTARGET70x04000000
COMBATLOG_OBJECT_RAIDTARGET80x08000000
COMBATLOG_OBJECT_NONE0x80000000
COMBATLOG_OBJECT_SPECIAL_MASK0xFFFF0000

Explanation

A unit can only be one type from each the following four categories:

  1. Affiliation
  2. Reaction
  3. Ownership
  4. Type

Here’s a quick explanation of how these flags are broken down:

Affiliation

A unit’s affiliation is the unit’s relationship relative to YOU. Either it is owned by you, your party, your raid or someone else.

Mine
Party
Raid
Outsiders

Reaction

This is the unit’s faction reaction, relative to you. Anything that hates you is Hostile, anything that is friendly with you is Friendly, everything else is Neutral.

Ownership

This is who owns this object. It can only be controlled by a player or the server.

Unit Type

This is the way the unit is currently being controlled. Units directly controlled by their owner are players. Units controlled by the server are NPCs. Pets are controlled by another player or unit. Guardians are automatons that are not controlled, but automatically defend their master. Objects are everything else, such as Traps.

The result is that these bits can tell you what kind of unit that combat log object was.

Example

  • A player who is dueling you is 0x0548 (A hostile outsider who is both owned by a player and controlled as a player)
  • A player who was mind controlled that attacks you is 0x1148 (A hostile outsider who is owned by a player, but controlled as a pet)
Rate this article:
Share this article:
.