WriteSpellCastTargets
function · spell · orchestration
- Address
0x7e4e10· 192 bytes, up to0x7e4ecf- Meaning
- Writes a cast target block: a 16-bit mask, then the guids, positions and text the mask names
- Confidence
- verified, proof one
- Finding
- spell/cast#cast-request-packets
Finding: Cast request packets in spell: cast
0x6e54f0(record, flag) sends one of three requests, each ending in the target block.
| opcode | when | body before the targets |
|---|---|---|
CMSG_USE_ITEM (0xab) | +0x00 differs from +0x08 | u8 bag, u8 slot, u8 spell index |
CMSG_CAST_SPELL (0x12e) | the caster is the active player | u32 spell |
CMSG_PET_CAST_SPELL (0x1f0) | otherwise | u64 caster guid, u32 spell |
The target block is a u16 mask (+0x14); a packed guid of +0x18 when the mask has any of
0x8a02; a packed guid of +0x20 for 0x1010; three floats +0x30 to +0x38 for 0x20; three
floats +0x3c to +0x44 for 0x40; and 128 raw bytes from +0x70 for 0x2000. A packed guid is a
mask byte, then each nonzero byte of the guid from the lowest, mask bit i for byte i.
The derivation is in the doc.
Callers 1
- SendCast spell
Callees 4
- CDataStore::PutUInt16 base
- CDataStore::PutFloat base
- CDataStore::PutArray base
- CDataStore::PutPackGuid base
Calls and jumps by a bare address, from tables/calls.tsv.