benilla-re systems structs docs

CastSpellAsActivePlayer

function · spell · orchestration

Address
0x6e5a90 · 56 bytes, up to 0x6e5ac7
Signature
uint8_t __fastcall (uint32_t spell, CGItem *item, uint64_t target)
Meaning
Calls the cast attempt 0x6e4b60 with the active player as caster
Confidence
verified, proof one
Finding
spell/cast#cast-entries

Finding: Cast entries in spell: cast

0x6e5a90(spell, item, guid) casts for the active player: 0x6e4b60(player, spell, item, guid). 0x6e5b10(guid*) binds the object the guid names (mask 1) through 0x6e5b40. 0x6ea1d0(spell) stores the feed spell 0xcecad8. 0x6ea1e0(item, unit) casts it when the item and unit exist, the unit's UNIT_FIELD_PETNUMBER (+0x214 in the unit block) is nonzero, the feed spell has a record, and the unit's creator (+0x20) is the active player; when the cast returns 1 it binds the item.

The derivation is in the doc.

Callers 14

Callees 3

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