Script::CastShapeshiftForm
function · ui · primitive
- Address
0x4b4810· 400 bytes, up to0x4b499f- Signature
int __fastcall (lua_State *L)- Meaning
- Cancels or casts the form bar spell of an index
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/petbar#form-cooldown-and-cast
Finding: Form cooldown and cast in ui: the pet bar and the form bar
GetShapeshiftFormCooldown(index) returns start and duration times 0.001 and the enable flag for the
form's spell from the player's bank, and 0, 0, 1 for an index outside the list. CastShapeshiftForm(index)
takes the form's spell. With a shapeshift aura whose form number is in the form table: if the player is
already in that form it cancels the form (0x6e7040), or does nothing when the form record's flag word
(+0x2c) has bit 1 set; in any other form state it casts. A spell without a form number toggles by its
aura instead: the cancel happens when the spell has an active icon and its aura is up, else it casts.
The cast is 0x6e5a90 on the player.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CastSpellAsActivePlayer spell
- Spell_C::CancelAura spell
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.