SpellCastTargetFlags

Client Version 1.12

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/common.wowm:1.

flag SpellCastTargetFlags : u16 {
    SELF = 0x00000000;
    UNUSED1 = 0x00000001;
    UNIT = 0x00000002;
    UNUSED2 = 0x00000004;
    UNUSED3 = 0x00000008;
    ITEM = 0x00000010;
    SOURCE_LOCATION = 0x00000020;
    DEST_LOCATION = 0x00000040;
    OBJECT_UNK = 0x00000080;
    UNIT_UNK = 0x00000100;
    PVP_CORPSE = 0x00000200;
    UNIT_CORPSE = 0x00000400;
    GAMEOBJECT = 0x00000800;
    TRADE_ITEM = 0x00001000;
    STRING = 0x00002000;
    UNK1 = 0x00004000;
    CORPSE = 0x00008000;
}

Type

The basic type is u16, a 2 byte (16 bit) little endian integer.

Enumerators

EnumeratorValueComment
SELF0 (0x00)
UNUSED11 (0x01)not used in any spells (can be set dynamically)
UNIT2 (0x02)
UNUSED24 (0x04)not used in any spells (can be set dynamically)
UNUSED38 (0x08)not used in any spells (can be set dynamically)
ITEM16 (0x10)
SOURCE_LOCATION32 (0x20)
DEST_LOCATION64 (0x40)
OBJECT_UNK128 (0x80)used in 7 spells only
UNIT_UNK256 (0x100)looks like self target (389 spells)
PVP_CORPSE512 (0x200)
UNIT_CORPSE1024 (0x400)10 spells (gathering professions)
GAMEOBJECT2048 (0x800)pguid, 0 spells
TRADE_ITEM4096 (0x1000)pguid, 0 spells
STRING8192 (0x2000)string, 0 spells
UNK116384 (0x4000)199 spells, opening object/lock
CORPSE32768 (0x8000)pguid, resurrection spells

Used in:

Client Version 2.4.3

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/common.wowm:34.

flag SpellCastTargetFlags : u32 {
    SELF = 0x00000000;
    UNUSED1 = 0x00000001;
    UNIT = 0x00000002;
    UNIT_RAID = 0x00000004;
    UNIT_PARTY = 0x00000008;
    ITEM = 0x00000010;
    SOURCE_LOCATION = 0x00000020;
    DEST_LOCATION = 0x00000040;
    UNIT_ENEMY = 0x00000080;
    UNIT_ALLY = 0x00000100;
    CORPSE_ENEMY = 0x00000200;
    UNIT_DEAD = 0x00000400;
    GAMEOBJECT = 0x00000800;
    TRADE_ITEM = 0x00001000;
    STRING = 0x00002000;
    LOCKED = 0x00004000;
    CORPSE_ALLY = 0x00008000;
    UNIT_MINIPET = 0x00010000;
}

Type

The basic type is u32, a 4 byte (32 bit) little endian integer.

Enumerators

EnumeratorValueComment
SELF0 (0x00)
UNUSED11 (0x01)not used in any spells as of 2.4.3 (can be set dynamically)
UNIT2 (0x02)
UNIT_RAID4 (0x04)not used in any spells as of 2.4.3 (can be set dynamically) - raid member
UNIT_PARTY8 (0x08)not used in any spells as of 2.4.3 (can be set dynamically) - party member
ITEM16 (0x10)
SOURCE_LOCATION32 (0x20)
DEST_LOCATION64 (0x40)
UNIT_ENEMY128 (0x80)CanAttack == true
UNIT_ALLY256 (0x100)CanAssist == true
CORPSE_ENEMY512 (0x200)pguid, CanAssist == false
UNIT_DEAD1024 (0x400)skinning-like effects
GAMEOBJECT2048 (0x800)pguid, 0 spells in 2.4.3
TRADE_ITEM4096 (0x1000)pguid, 0 spells
STRING8192 (0x2000)string, 0 spells
LOCKED16384 (0x4000)199 spells, opening object/lock
CORPSE_ALLY32768 (0x8000)pguid, CanAssist == true
UNIT_MINIPET65536 (0x10000)pguid, not used in any spells as of 2.4.3 (can be set dynamically)

Used in:

Client Version 3.3.5

Wowm Representation

Autogenerated from wowm file at wow_message_parser/wowm/world/common.wowm:70.

flag SpellCastTargetFlags : u32 {
    SELF = 0x00000000;
    UNUSED1 = 0x00000001;
    UNIT = 0x00000002;
    UNIT_RAID = 0x00000004;
    UNIT_PARTY = 0x00000008;
    ITEM = 0x00000010;
    SOURCE_LOCATION = 0x00000020;
    DEST_LOCATION = 0x00000040;
    UNIT_ENEMY = 0x00000080;
    UNIT_ALLY = 0x00000100;
    CORPSE_ENEMY = 0x00000200;
    UNIT_DEAD = 0x00000400;
    GAMEOBJECT = 0x00000800;
    TRADE_ITEM = 0x00001000;
    STRING = 0x00002000;
    LOCKED = 0x00004000;
    CORPSE_ALLY = 0x00008000;
    UNIT_MINIPET = 0x00010000;
    GLYPH_SLOT = 0x00020000;
    DEST_TARGET = 0x00040000;
    UNUSED20 = 0x00080000;
    UNIT_PASSENGER = 0x00100000;
}

Type

The basic type is u32, a 4 byte (32 bit) little endian integer.

Enumerators

EnumeratorValueComment
SELF0 (0x00)
UNUSED11 (0x01)not used in any spells as of 2.4.3 (can be set dynamically)
UNIT2 (0x02)pguid
UNIT_RAID4 (0x04)not used in any spells as of 2.4.3 (can be set dynamically) - raid member
UNIT_PARTY8 (0x08)not used in any spells as of 2.4.3 (can be set dynamically) - party member
ITEM16 (0x10)pguid
SOURCE_LOCATION32 (0x20)3xfloat
DEST_LOCATION64 (0x40)3xfloat
UNIT_ENEMY128 (0x80)CanAttack == true
UNIT_ALLY256 (0x100)CanAssist == true
CORPSE_ENEMY512 (0x200)pguid, CanAssist == false
UNIT_DEAD1024 (0x400)skinning-like effects
GAMEOBJECT2048 (0x800)pguid, 0 spells in 2.4.3
TRADE_ITEM4096 (0x1000)pguid, 0 spells
STRING8192 (0x2000)string, 0 spells
LOCKED16384 (0x4000)199 spells, opening object/lock
CORPSE_ALLY32768 (0x8000)pguid, CanAssist == true
UNIT_MINIPET65536 (0x10000)pguid, not used in any spells as of 2.4.3 (can be set dynamically)
GLYPH_SLOT131072 (0x20000)used in glyph spells
DEST_TARGET262144 (0x40000)sometimes appears with DEST_TARGET spells (may appear or not for a given spell)
UNUSED20524288 (0x80000)uint32 counter loop, vec3 - screen position (?) guid, not used so far
UNIT_PASSENGER1048576 (0x100000)guessed, used to validate target (if vehicle passenger)

Used in: