Closed ZuggieTM closed 6 months ago
In every place where GetQuestDifficultyColor()
is used in blizzards classic code, the level is passed as a parameter. Also described here: https://wowpedia.fandom.com/wiki/API_GetQuestDifficultyColor
From where do you have the information about the quest id as parameter? 🤔
Nevermind. I noticed that level wasn't parsed into the function so it was nil. That is what's causing the issue.
To determin the quest difficulty in ttItemRef.lua
I changed it to use function LibFroznFunctions:GetDifficultyColorForQuest(questID, questLevel)
for this. Missing quest ids are considered there.
Will be included in the next release. Thanks for this hint! 👍
GetQuestDifficultyColor takes a quest ID as an argument in Classic Era, rather than a level to compare with the player's current level