CastFeedPetOnItem
function · spell · orchestration
- Address
0x6ea1e0· 159 bytes, up to0x6ea27e- Signature
uint8_t __fastcall (CGItem *item, CGUnit *unit)- Meaning
- Casts the stored feed spell when the unit was made by the active player, then binds the item
- 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 2
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CastSpellAsActivePlayer spell
- BindSpellTargetObject spell
Calls and jumps by a bare address, from tables/calls.tsv.