mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Append counterpart to SetSpellByID -- adds a spell's tooltip (name, cast time, cost, range, description) to the current tooltip WITHOUT clearing existing lines, so callers can compose tooltips like AddLine(header) + AddSpellByID(id). BuildSpellTooltip's last arg gates the clear: SetSpellByID passes 0 (clears via FUN_00530050 first); AddSpellByID passes 1 (skips the clear and appends). That append path is the engine's talent "next rank" preview, so it emits a "Next rank:" header instead of the spell name and doesn't stash the displayed spellID -- we overwrite that header line (at the pre-build numLines index) with the real name from Spell.dbc and let GetSpell keep reflecting the base tooltip. Verified in-game.