PressPetAction
function · ui · primitive
- Address
0x4bd1d0· 765 bytes, up to0x4bd4cc- 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
- PressPetPassive ui
- PressPetDefensive ui
- PressPetAggressive ui
- PressPetWait ui
- PressPetFollow ui
- PressPetAttack ui
- PressPetDismiss ui
- Script::CastPetAction ui
Callees 16
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- CDataStore::PutGuid base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CheckActivePlayer ui
- SetPetReaction ui
- SetPetCommand ui
- PetSpellAuraActive ui
- CanUsePetBar ui
- ClientServices::Send net
- CGPlayer_C::GetPossessedFarSightUnit objectlayer
- CGUnit_C::CanStartMeleeAttack objectlayer
- StartGlobalCooldown spell
- TryCastSpell spell
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.