Returns the spells associated with a specialization.
See also Talent functions.
specIndex- The specialization index to get the spells for. (Usually between 1 and 3) (
isInspect- If true, return the inspected unit's spells instead of the player's. (
isPet- If true, return the player's current pet's spells instead of the player's. (
spellID- spellID of the specialization spell. (
levelLearned- The level at which the spell is learned. (
spellID, levelLearnedpairs for the other spells of this specialization. (
local currentSpec = GetSpecialization() -- Get the player's current spec local spellID, levelLearned = GetSpecializationSpells(currentSpec) -- Get the spellID and level learned of the first spell of this spec. local spellName = GetSpellInfo(spellID) -- Get the spell name print("Your specialization's first spell is " .. spellName .. " (spellID " .. spellID .. ") and is learned at level " .. levelLearned .. "!") -- Print it all out to chat