benilla-re systems structs docs

s_formSpells

global · ui

Address
0xb71108 · 4 bytes, up to 0xb7110b
Type
uint32_t *
Meaning
Points at the form bar's sorted spell ids
Confidence
verified, proof one
Finding
ui/petbar#form-list

Finding: Form list in ui: the pet bar and the form bar

The form bar is a sorted list of spell ids at 0xb71108 (count 0xb71104). 0x4b25b0 adds a learned spell unless its AttributesEx2 has bit 1 (0x2); the spell needs a shapeshift aura effect (aura 36) or AttributesEx2 bit 4 (0x10). The sort 0x4b2bb0 orders by the word at +0x298, ascending, entries of -1 last and entries below 0 by spell id. Unlearning removes the entry (0x4b2c50). Both signal UPDATE_SHAPESHIFT_FORMS (387). GetNumShapeshiftForms pushes the count.

The derivation is in the doc.