benilla-re systems structs docs

SetInFlightSpell

function · spell · orchestration

Address
0x6e4ad0 · 132 bytes, up to 0x6e4b53
Signature
void __fastcall (uint32_t spell, CGItem *item)
Meaning
Pushes a spell and its item guid as in flight over the saved slot, or pops the saved slot back for spell 0
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.

Callers 4

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.