Returns spellID of the mastery spell for a given specialization index.


See also Talent functions.

Signature:

spellID = GetSpecializationMasterySpells(specIndex [, isInspect [, isPet]])

Arguments:

  • specIndex - The specialization index to get the spells for. (Usually between 1 and 4) (number)
  • isInspect - If true, return the inspected unit's spells instead of the player's. (boolean)
  • isPet - If true, return the player's current pet's spells instead of the player's. (boolean)

Returns:

  • spellID - spellID of the mastery spell for the given specialization index regardless of whether the spell is known by the player. (number, spellID)