benilla-re systems structs docs

Script::IsActionInRange

function · ui · orchestration

Address
0x4e7550 · 127 bytes, up to 0x4e75ce
Signature
int __fastcall (lua_State *L)
Meaning
Returns an action slot's range answer as nil, 0 or 1
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

Calls and jumps by a bare address, from tables/calls.tsv.