CastResultHandler
function · spell · orchestration
- Address
0x6e7330· 434 bytes, up to0x6e74e1- Signature
int __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)- Meaning
- Handles SMSG_CAST_RESULT: reports a failure, clears the saved and in-flight slots and casts the next spell
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- spell/handlers#cast-result
Finding: Cast result in spell: handlers
SMSG_CAST_RESULT (0x130): a dword spell id, a status byte, and for status 2 a reason byte and up
to two dwords. Each dword is read only when at least one byte remains, and is -1 otherwise or when
fewer than four remain. For status 2 the handler calls 0x6e1a00 (spell id, reason, first dword,
second dword, 1); then, unless the reason is 0x3c, a spell whose record has bit 25 of the dword
at +0x18 gets 0x6e3050 (spell id, 0, 0, 1) on the player's cooldown list (cooldowns). Any
other status skips both. Every status then goes on to the slot handling (In-flight cast reply).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- CDataStore::GetUInt8 base
- CDataStore::GetInt32 base
- ClntObjMgrGetActivePlayer objectlayer
- ReportCastFailure spell
- StartOrRemoveSpellCooldown spell
- IsCastInFlight spell
- CancelCast spell
- CastSpellAsActivePlayer spell
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.