Namespaces

Variants
Actions

RaidFlag

From Wowpedia
Jump to: navigation, search

Raid flags are used in conjunction with the sourceRaidFlags and destRaidFlags fields of the COMBAT_LOG_EVENT and COMBAT_LOG_EVENT_UNFILTERED events.

Contents

Constants

Constant bitfield
Raid Target (Exclusive)
COMBATLOG_OBJECT_RAIDTARGET_MASK 0x 0 0 0 0 0 0 F F
COMBATLOG_OBJECT_RAIDTARGET8 0x 0 0 0 0 0 0 8 0
COMBATLOG_OBJECT_RAIDTARGET7 0x 0 0 0 0 0 0 4 0
COMBATLOG_OBJECT_RAIDTARGET6 0x 0 0 0 0 0 0 2 0
COMBATLOG_OBJECT_RAIDTARGET5 0x 0 0 0 0 0 0 1 0
COMBATLOG_OBJECT_RAIDTARGET4 0x 0 0 0 0 0 0 0 8
COMBATLOG_OBJECT_RAIDTARGET3 0x 0 0 0 0 0 0 0 4
COMBATLOG_OBJECT_RAIDTARGET2 0x 0 0 0 0 0 0 0 2
COMBATLOG_OBJECT_RAIDTARGET1 0x 0 0 0 0 0 0 0 1


Prior to Patch 4.2, these flags were part of the Unit Flags as follows:

Constant bitfield
Special cases (non-exclusive)
COMBATLOG_OBJECT_SPECIAL_MASK 0x F F F F 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET8 0x 0 8 0 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET7 0x 0 4 0 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET6 0x 0 2 0 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET5 0x 0 1 0 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET4 0x 0 0 8 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET3 0x 0 0 4 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET2 0x 0 0 2 0 0 0 0 0
COMBATLOG_OBJECT_RAIDTARGET1 0x 0 0 1 0 0 0 0 0

Explanation

A raid flag specifies which, if any, raid target is assigned to the associated unit. Raid target icons are used to display the various charms such as the star, box, and triangle.

Example

  • A player who is assigned as the first raid target is 0x01
  • A player who is assigned as the sixth target is 0x20
if bit.band(raidFlags, COMBATLOG_OBJECT_RAIDTARGET_MASK) > 0 then
  print("Raid Target")
end

Patch changes