ExpandSpellText
function · ui · primitive
- Address
0x5075f0· 279 bytes, up to0x507706- Signature
uint32_t __fastcall (void *arg1, char *out, uint32_t size, uint32_t pet, uint32_t level, uint32_t aura, uint32_t stack, uint32_t unmodified)- Meaning
- Copies a spell description with every dollar token expanded and returns 1 when none failed
- Confidence
- verified, proof one
- Finding
- ui/spelltokens#the-expander
Finding: The expander in ui: Spell description tokens
0x5075f0(spell record; buffer, size, pet, level, aura, stack, unmodified) clears the buffer and copies the
text up to each $, expanding every token. The text is the aura description (+0x24c) when aura is set
and it is nonempty, else the description (+0x228). A level of 0 means the level the player has for the spell:
the player's value in the spell's skill line over five (spell/records#caster-level). A token the dispatcher
cannot expand leaves a literal $ in the output and the text after the token is copied as it stands. The
return value is 1 when every token was expanded and 0 otherwise.
| caller | pet | level | aura | stack | unmodified |
|---|---|---|---|---|---|
| spell tooltip, item spell and set bonus lines | the pet flag, 0 for items | 0 | 0 | 1 | 0 |
| buff tooltip | 0 | the buff's | 1 | the stack, or 1 | 1 |
The derivation is in the doc.
Callers 6
- Script::GetTrainerServiceDescription ui
- Script::GetCraftDescription ui
- CGTooltip::BuildPassiveTalent ui
- CGTooltip::BuildItem ui
- CGTooltip::BuildSpell ui
- CGTooltip::BuildAura ui
Callees 5
- ExpandSpellToken ui
- SStrChr storm
- SStrLen storm
- SStrPack storm
- GetSpellLevel spell
Calls and jumps by a bare address, from tables/calls.tsv.