Returns whether a unit is on one of the quests in the player's quest log
See also Unit functions, Quest functions.
Signature:
state = IsUnitOnQuest(index, "unit") or IsUnitOnQuest(index, "name")
Arguments:
index- Index of a quest in the player's quest log (between 1 andGetNumQuestLogEntries()) (number)unit- A unit to query (string, unitID)name- The name of a unit to query; only valid forplayer,pet, and party/raid members (string)
Returns:
state- 1 if the unit is on the quest; otherwise nil (1nil)