benilla-re systems structs docs

SpellFailedHandler

function · spell · orchestration

Address
0x6e8d80 · 189 bytes, up to 0x6e8e3c
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Handles opcode 0x133: runs the unit's failure calls and the school sound, and fires STOP_AUTOREPEAT_SPELL on ammo
Confidence
verified, proof one
Name from
the community database (idb)
Finding
spell/failures#spell-failure-packets

Finding: Spell failure packets in spell: failures

SMSG_SPELL_FAILURE (0x133) carries a u64 caster GUID, a u32 spell id and a u8 reason. For a known unit, 0x6e8d80 calls 0x60d040(spell, 1, 1) and 0x614150(spell, 0), passes the spell and the unit to 0x458a50, calls 0x6ea080 (cast) when the unit is the active player and the reason is 0x2f, 0x30 or 0x31, then 0x60fc50 and, when 0x611590(1) holds, 0x60fb60(0, 1). It shows no message and fires STOP_AUTOREPEAT_SPELL on the 0x6ea080 leg, and other events and sends through its callees (What the failure handler signals). SMSG_SPELL_FAILED_OTHER (0x2a6), a u64 GUID and a u32 spell id, makes 0x6e8e40 call only the first two. Both return 1. The names are the server's.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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