benilla-re systems structs docs

PressPetAction

function · ui · primitive

Address
0x4bd1d0 · 765 bytes, up to 0x4bd4cc
Signature
void __fastcall (uint32_t *word, uint64_t *target)
Meaning
Carries out a pet bar click: mode bytes, aura cancel, cast, attack latch and CMSG_PET_ACTION
Confidence
verified, proof one
Finding
ui/petbar#pressing-a-pet-action

Finding: Pressing a pet action in ui: the pet bar and the form bar

0x4bd1d0(slotWord, target) carries out a pet bar click, using the current target when none is passed. It does nothing unless the action gate 0x494a50 for kind 2 and the pet gate allow. A reaction or a wait or follow command sets its mode byte first. A spell whose aura is up sends CMSG_PET_CANCEL_AURA (619: pet guid, spell) and returns. Another spell goes through the generic cast entry 0x6e4b60, with the pet as caster, when the record's word at +0x28 has bit 5 or the pet is the player's far-sight unit. An attack command sets the latch, signals PET_BAR_UPDATE, and sends only if 0x612df0 accepts the target. All else sends CMSG_PET_ACTION (373): u64 pet guid, u32 slot word, u64 target.

The derivation is in the doc.

Callers 8

Callees 16

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