s_formSpellCount
global · ui
- Address
0xb71104· 4 bytes, up to0xb71107- Type
uint32_t- Meaning
- Holds the number of spells on the form bar
- 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.