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

OffsetSize / EndiannessTypeNameComment
0x002 / -SpellCastTargetFlagstarget_flags

If target_flags contains UNIT:

OffsetSize / EndiannessTypeNameComment
0x02- / -PackedGuidunit_target

If target_flags contains GAMEOBJECT:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidgameobject

Else If target_flags contains OBJECT_UNK:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidobject_unk

If target_flags contains ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuiditem

Else If target_flags contains TRADE_ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidtrade_item

If target_flags contains SOURCE_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3dsource

If target_flags contains DEST_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3ddestination

If target_flags contains STRING:

OffsetSize / EndiannessTypeNameComment
-- / -CStringtarget_string

If target_flags contains CORPSE:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidcorpse

Else If target_flags contains PVP_CORPSE:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidpvp_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

OffsetSize / EndiannessTypeNameComment
0x004 / -SpellCastTargetFlagstarget_flags

If target_flags contains UNIT:

OffsetSize / EndiannessTypeNameComment
0x04- / -PackedGuidunit_target

Else If target_flags contains UNIT_MINIPET:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidunit_minipet

Else If target_flags contains UNIT_ENEMY:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidunit_enemy

If target_flags contains GAMEOBJECT:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidgameobject

Else If target_flags contains LOCKED:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidlocked

If target_flags contains ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuiditem

Else If target_flags contains TRADE_ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidtrade_item

If target_flags contains SOURCE_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3dsource

If target_flags contains DEST_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3ddestination

If target_flags contains STRING:

OffsetSize / EndiannessTypeNameComment
-- / -CStringtarget_string

If target_flags contains CORPSE_ALLY:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidcorpse_ally

Else If target_flags contains CORPSE_ENEMY:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidcorpse_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

OffsetSize / EndiannessTypeNameComment
0x004 / -SpellCastTargetFlagstarget_flags

If target_flags contains UNIT:

OffsetSize / EndiannessTypeNameComment
0x04- / -PackedGuidunit_target

Else If target_flags contains UNIT_MINIPET:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidminipet_target

Else If target_flags contains GAMEOBJECT:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidgameobject_target

Else If target_flags contains CORPSE_ENEMY:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidenemy_corpse_target

Else If target_flags contains CORPSE_ALLY:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidally_corpse_target

If target_flags contains ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuiditem_target

Else If target_flags contains TRADE_ITEM:

OffsetSize / EndiannessTypeNameComment
-- / -PackedGuidtrade_item_target

If target_flags contains SOURCE_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3dsource

If target_flags contains DEST_LOCATION:

OffsetSize / EndiannessTypeNameComment
-12 / -Vector3ddestination

If target_flags contains STRING:

OffsetSize / EndiannessTypeNameComment
-- / -CStringtarget_string

Used in: