benilla-re systems structs docs

Script::IsCurrentCast

function · ui · orchestration

Address
0x4b4370 · 107 bytes, up to 0x4b43da
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when a book spell is the current trade skill or form, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/spellbook#checked-spells

Finding: Checked spells in ui: the spell book

IsCurrentCast (0x4b4370) pushes 1 or nil from 0x4b3600(slot, book), a smaller test than the action bar's. A slot of no spell is false. A spell whose first effect is 47 is true when its misc value (+0x1a8), if nonzero, equals the open craft profession, else when the open trade-skill line equals the line of its skill ability (taken from the open recipe record if there is one). Any spell with a shapeshift aura effect (aura 36) is true when that effect's misc value equals the player's form byte. There are no casting, targeting, item or attack arms.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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