benilla-re systems structs docs

IsActivePlayerUnit

function · objectlayer · orchestration

Address
0x5fa6d0 · 36 bytes, up to 0x5fa6f3
Signature
uint32_t __thiscall (void *this)
Meaning
Returns 1 when a unit's GUID is the active player's, else 0
Confidence
verified, proof one
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 46

Callees 1

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