benilla-re systems structs docs

s_inFlightSpellId

global · spell

Address
0xceca88 · 4 bytes, up to 0xceca8b
Type
uint32_t
Meaning
Holds the in-flight spell id; 0 at load, written by 0x6e4ad0 and 0x6e7150
Confidence
verified, proof one
Finding
spell/cast#the-in-flight-spell

Finding: The in-flight spell in spell: cast

0x6e4ad0(spell, item) with a nonzero spell other than the in-flight one pushes: the in-flight spell 0xceca88 and its item guid 0xcecab0 move to the saved slot 0xcecaa8 and 0xcecb20, and the new spell and its item's guid, or 0, take their place. With spell 0 it pops: the saved slot is copied back and stays as it was. A spell equal to the in-flight one changes nothing. Every change ends in 0x4b3250, which fires ACTIONBAR_UPDATE_STATE (214) and then CURRENT_SPELL_CAST_CHANGED (261), both with no arguments. Only one level is saved: a second push overwrites the saved slot.

The derivation is in the doc.