SendCast
function · spell · primitive
- Address
0x6e54f0· 1225 bytes, up to0x6e59b8- Signature
void __fastcall (const void *pendingCast, uint8_t flag)- Meaning
- Sends CMSG_USE_ITEM, CMSG_CAST_SPELL or CMSG_PET_CAST_SPELL with the target block, then starts the GCD
- 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 4
- ArmCastTargets spell
- BindSpellTargetObject spell
- BindSpellTargetLocation spell
- BindSpellTargetTradeSlot spell
Callees 23
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- SignalCurrentSpellCastChanged ui
- SetCursorMode ui
- SetBaseCursorMode ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- ClientServices::Send net
- CGPlayer_C::FindSlotIndex objectlayer
- CGPlayer_C::StopMeleeAttack objectlayer
- IsActivePlayerUnit objectlayer
- PlayUnitSpellVisualKit objectlayer
- CGUnit_C::SetSheatheState objectlayer
- ConsoleWrite console
- CWorld::DestroyMapEntity terrain
- StartGlobalCooldown spell
- SetInFlightSpell spell
- GetSpellVisualRecord spell
- PlaySpellPrecastVisual spell
- FrameScript_SignalEvent ui
- WriteSpellCastTargets spell
Calls and jumps by a bare address, from tables/calls.tsv.