Script::ActionHasRange
function · ui · orchestration
- Address
0x4e75d0· 79 bytes, up to0x4e761e- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when an action slot's spell has a range, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/actionbar#range
Finding: Range in ui: action bars
IsActionInRange (0x4e7550) pushes nil, 0 or 1 from 0x4e56f0. Nil: no player, a bad slot, a
pet-book spell, a missing record, or an unlisted target type. 0: 0x6e4440 fails
(spell/checks#range-pre-check, no report). 1: the first effect's implicit target is 6, 21, 23, 25, 26,
35, 45, 57 or 61 and a target is selected. ActionHasRange (0x4e75d0) is true when the spell's |min|
or |max| range from 0x6e3480 is not below 2^-22 (0x8029d4, fcomp then test ah,5; jp at 0x4e5885), so a range equal to it, or a NaN, counts.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- __ftol crt
- ActionSlotHasRange ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.