SpellCastTargets
Client Version 1.12
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/common.wowm:118
.
struct SpellCastTargets {
SpellCastTargetFlags target_flags;
if (target_flags & UNIT) {
PackedGuid unit_target;
}
if (target_flags & GAMEOBJECT) {
PackedGuid gameobject;
}
else if (target_flags & OBJECT_UNK) {
PackedGuid object_unk;
}
if (target_flags & ITEM) {
PackedGuid item;
}
else if (target_flags & TRADE_ITEM) {
PackedGuid trade_item;
}
if (target_flags & SOURCE_LOCATION) {
Vector3d source;
}
if (target_flags & DEST_LOCATION) {
Vector3d destination;
}
if (target_flags & STRING) {
CString target_string;
}
if (target_flags & CORPSE) {
PackedGuid corpse;
}
else if (target_flags & PVP_CORPSE) {
PackedGuid pvp_corpse;
}
}
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x00 | 2 / - | SpellCastTargetFlags | target_flags |
If target_flags contains UNIT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x02 | - / - | PackedGuid | unit_target |
If target_flags contains GAMEOBJECT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | gameobject |
Else If target_flags contains OBJECT_UNK
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | object_unk |
If target_flags contains ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | item |
Else If target_flags contains TRADE_ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | trade_item |
If target_flags contains SOURCE_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | source |
If target_flags contains DEST_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | destination |
If target_flags contains STRING
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | target_string |
If target_flags contains CORPSE
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | corpse |
Else If target_flags contains PVP_CORPSE
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | pvp_corpse |
Used in:
Client Version 2.4.3
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/common.wowm:159
.
struct SpellCastTargets {
SpellCastTargetFlags target_flags;
if (target_flags & UNIT) {
PackedGuid unit_target;
}
else if (target_flags & UNIT_MINIPET) {
PackedGuid unit_minipet;
}
else if (target_flags & UNIT_ENEMY) {
PackedGuid unit_enemy;
}
if (target_flags & GAMEOBJECT) {
PackedGuid gameobject;
}
else if (target_flags & LOCKED) {
PackedGuid locked;
}
if (target_flags & ITEM) {
PackedGuid item;
}
else if (target_flags & TRADE_ITEM) {
PackedGuid trade_item;
}
if (target_flags & SOURCE_LOCATION) {
Vector3d source;
}
if (target_flags & DEST_LOCATION) {
Vector3d destination;
}
if (target_flags & STRING) {
CString target_string;
}
if (target_flags & CORPSE_ALLY) {
PackedGuid corpse_ally;
}
else if (target_flags & CORPSE_ENEMY) {
PackedGuid corpse_enemy;
}
}
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x00 | 4 / - | SpellCastTargetFlags | target_flags |
If target_flags contains UNIT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x04 | - / - | PackedGuid | unit_target |
Else If target_flags contains UNIT_MINIPET
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | unit_minipet |
Else If target_flags contains UNIT_ENEMY
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | unit_enemy |
If target_flags contains GAMEOBJECT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | gameobject |
Else If target_flags contains LOCKED
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | locked |
If target_flags contains ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | item |
Else If target_flags contains TRADE_ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | trade_item |
If target_flags contains SOURCE_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | source |
If target_flags contains DEST_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | destination |
If target_flags contains STRING
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | target_string |
If target_flags contains CORPSE_ALLY
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | corpse_ally |
Else If target_flags contains CORPSE_ENEMY
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | corpse_enemy |
Used in:
Client Version 3.3.5
Wowm Representation
Autogenerated from wowm
file at wow_message_parser/wowm/world/common.wowm:206
.
struct SpellCastTargets {
SpellCastTargetFlags target_flags;
if (target_flags & UNIT) {
PackedGuid unit_target;
}
else if (target_flags & UNIT_MINIPET) {
PackedGuid minipet_target;
}
else if (target_flags & GAMEOBJECT) {
PackedGuid gameobject_target;
}
else if (target_flags & CORPSE_ENEMY) {
PackedGuid enemy_corpse_target;
}
else if (target_flags & CORPSE_ALLY) {
PackedGuid ally_corpse_target;
}
if (target_flags & ITEM) {
PackedGuid item_target;
}
else if (target_flags & TRADE_ITEM) {
PackedGuid trade_item_target;
}
if (target_flags & SOURCE_LOCATION) {
Vector3d source;
}
if (target_flags & DEST_LOCATION) {
Vector3d destination;
}
if (target_flags & STRING) {
CString target_string;
}
}
Body
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x00 | 4 / - | SpellCastTargetFlags | target_flags |
If target_flags contains UNIT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
0x04 | - / - | PackedGuid | unit_target |
Else If target_flags contains UNIT_MINIPET
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | minipet_target |
Else If target_flags contains GAMEOBJECT
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | gameobject_target |
Else If target_flags contains CORPSE_ENEMY
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | enemy_corpse_target |
Else If target_flags contains CORPSE_ALLY
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | ally_corpse_target |
If target_flags contains ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | item_target |
Else If target_flags contains TRADE_ITEM
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | PackedGuid | trade_item_target |
If target_flags contains SOURCE_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | source |
If target_flags contains DEST_LOCATION
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | 12 / - | Vector3d | destination |
If target_flags contains STRING
:
Offset | Size / Endianness | Type | Name | Comment |
---|---|---|---|---|
- | - / - | CString | target_string |
Used in: