GetCachedActionUsable
function · ui · orchestration
- Address
0x4e5230· 29 bytes, up to0x4e524c- Signature
bool __fastcall (uint32_t slot, uint32_t *noPower)- Meaning
- Returns a slot's cached usable flag and stores its cached 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 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.