benilla-re systems structs docs

HandleSpellStart

function · spell · orchestration

Address
0x6e7700 · 870 bytes, up to 0x6e7a65
Signature
void __fastcall (const uint64_t *source, const uint64_t *caster, uint32_t spellId, void *msg)
Meaning
Decodes a spell start, starts the caster's cast state and fires SPELLCAST_START for the player's timed cast
Confidence
verified, proof one
Finding
spell/handlers#spell-start

Finding: Spell start in spell: handlers

SMSG_SPELL_START: the common fields, a 16-bit cast flags word, a dword cast time, the target block, and two dwords (ammo display id, ammo inventory type) when the flags have 0x20, else zeros. Nothing happens without a record or a casting unit. A ranged spell (bit 5 of +0x20 or bit 1 of +0x18) passes the display id to 0x60ba30, for any caster. For another unit's cast the client calls 0x611cf0 (2, 1, 1) for a ranged spell, starts the cast visual 0x6ec220 unless flag bit 0 is set, and targets the caster through 0x493540 when the unit target is the player, the caster cannot assist the player and the player has no target. No event fires for another unit.

The derivation is in the doc.

Callers 1

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.