Returns the spell required by a quest, if any. It is currently known to return values for the learn spell quests.


See also Quest functions.

Signature:

spellID, iconTexture, isLearned = GetQuestLogCriteriaSpell([index])

Arguments:

  • index - The index of the quest in the quest log. The currently selected quest if omitted. (number)

Returns:

  • spellID - spellID of the spell criteria. (number, spellID)
  • iconTexture - The path to the icon texture of the spell. (string)
  • isLearned - Whether or not the spell has been learned. (boolean)