Script::GetShapeshiftFormInfo
function · ui · primitive
- Address
0x4b45c0· 577 bytes, up to0x4b4800- Signature
int __fastcall (lua_State *L)- Meaning
- Returns a form bar entry's icon, name, active and castable values
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#form-info
Finding: Form info in ui: the pet bar and the form bar
GetShapeshiftFormInfo(index) returns icon path, name, active and castable. Without a number it
raises; an index outside the list, no player or a missing record gives four nils. The spell's form
number is its shapeshift aura effect's misc value, 0 when none. With a form number the row is active
when the player's form byte equals it; with none, when the spell has an active icon and its own aura sits
in the unit's aura slots with the flag bit set. An active row shows the active icon when it has one;
any other row shows the spell icon. Active is 1 or nil; castable is 1 for an active row, else the
usability test 0x6e3d60.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- IsSpellUsable spell
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.