MACRONODE::DeriveBoundSpell
function · ui · primitive
- Address
0x4efe00· 397 bytes, up to0x4eff8c- Signature
void __thiscall (MACRONODE *this)- Meaning
- Derives the bound spell and book from the body's first cast line
- Confidence
- verified, proof one
- Finding
- ui/macros#the-bound-spell
Finding: The bound spell in ui: macros
A macro has a bound spell, +0x564, which the action bar uses for its icon, range, cooldown and usable
state (ui/actionbar#slots-with-no-spell). It is a spell id, 0 for none or -1 for an alias that did not resolve.
0x4efe00 derives it from the body, line by line, and stops at the first line that matches a cast line. No
line gives 0. The resolver writes +0x568 on a match: 0 for the player's book, 1 for the pet's. The derivation never
clears it. A failed alias shows the slot as unusable. A macro with a failed CastSpellByName name or no
cast line shows as usable.
The derivation is in the doc.
Callers 4
Callees 7
- ResolveSpellName ui
- SStrCmpI storm
- SStrLen storm
- SStrPrintf storm
- SStrTokenize storm
- SStrStr storm
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.