GetActionSlotUsable
function · ui · primitive
- Address
0x4e5050· 480 bytes, up to0x4e522f- Signature
bool __fastcall (uint32_t slot, uint32_t *noPower)- Meaning
- Computes an action slot's usable flag and no-power flag
- Confidence
- verified, proof one
- Finding
- ui/actionbar#usable-and-no-power
Finding: Usable and no power in ui: action bars
0x4e5050(slot, &noPower) computes a slot's usable flag; noPower starts 0. With no active player the
answer is 0. An item word whose count (0xbc6390) is 0, or for which 0x6e2fc0 finds a held
cooldown record, answers 0. The slot's spell then decides: a spell, or an item's on-use spell, runs
0x6e3d60 (spell/checks#usability-predicate) with noPower; a negative id, an id past the table or
a null record answers 0. A pet-book spell answers 0 unless 0x4bcf70 holds, then compares the cost
0x6e31b0 with the pet's power (health for type -2): affordable is 1, else noPower 1 and 0.
IsUsableAction returns the cached pair as 1 or nil, then 1 or nil.
The derivation is in the doc.
Callers 2
Callees 11
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CanUsePetBar ui
- ActionSlotMacroExists ui
- ActionSlotAuraActive ui
- ActionSlotIsAttack ui
- ActionSlotIsRangedRepeat ui
- GetActionSlotSpell ui
- IsItemSpellHeld spell
- GetSpellPowerCost spell
- IsSpellUsable spell
Calls and jumps by a bare address, from tables/calls.tsv.