DB/FactionGroup

From wowdev
Revision as of 06:50, 19 April 2023 by Xiberion (talk | contribs) (Added relevant information.)
Jump to navigation Jump to search

0.5.3.3368, 1.12.1.5875, 6.0.1.18179

struct FactionGroupRec {
  uint32_t m_ID;
  uint32_t m_maskID;                  // (1 << m_maskID) & FactionTemplateRec::m_factionGroup
  stringref m_internalName;
  langstringref m_name_lang;
};

3.3.5.12340

Defines column 3(FactionGroup), 4(FriendGroup), and 5(EnemyGroup).

Flag Bitmask Description
0 0x00 0 - None.
1 0x01 1 - All players (and pets).
2 0x02 2 - Alliance players (and their pets).
4 0x04 3 - Horde players (and their pets).
8 0x08 4 - Monster (Not a player nor a pet).