mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Take (spellID [, isPet [, showSubtext]]), pass the spell's remaining cooldown to the engine builder as 1.12's SetSpell does, and return 1 when the cooldown line shows, else nil. The rank is now off by default (showSubtext turns it on), and a bad ID raises 4.3.4's "Invalid spell ID in %s:SetSpellByID". AddSpellByID rewrites the builder's "Next rank:" header through the engine's add-line, so showSubtext works when appending, and leaves a recipe's created-item tooltip untouched.