ActionSlotIsAttack
function · ui · primitive
- Address
0x4e59b0· 70 bytes, up to0x4e59f5- Signature
bool __fastcall (uint32_t slot)- Meaning
- Answers whether a slot's spell has the attack effect as its first effect
- Confidence
- verified, proof one
- Finding
- ui/actionbar#repeat-and-attack-tests
Finding: Repeat and attack tests in ui: action bars
IsAutoRepeatAction (0x4e7360) pushes 1 or nil from 0x4e55b0: true when the slot's book-0 spell is
the auto-repeat spell (0x6e9fd0). IsAttackAction (0x4e7280) uses 0x4e59b0: true when the spell's
first effect is 78; the test reads the effect, not the spell id 6603. 0x4e5a00 is the ranged
repeat test the usable and icon code use: Attributes & 2 and AttributesEx2 & 0x20.
The derivation is in the doc.
Callers 5
- GetActionSlotUsable ui
- ActionSlotIsCurrent ui
- GetActionSlotTexture ui
- Script::IsAttackAction ui
- GameTooltip::SetAction ui
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.