oUF

97.2k Downloads

Difficulty tag using wrong function and outdated level

zorker opened this issue ยท 2 comments

commented

Current

    ["difficulty"] = [[function(u)
        if UnitCanAttack("player", u) then
            local l = UnitLevel(u)
            return Hex(GetQuestDifficultyColor((l > 0) and l or 99))
        end
    end]],

Should be

    ["difficulty"] = [[function(u)
        if UnitCanAttack("player", u) then
            local l = UnitLevel(u)
            return Hex(GetCreatureDifficultyColor((l > 0) and l or 199))
        end
    end]],

https://github.com/tomrus88/BlizzardInterfaceCode/blob/master/Interface/FrameXML/UIParent.lua#L4107

QuestDifficultyLevel does not scale with timewalking dungeons for example.

commented

Throw us a PR and I'll merge it.

commented

Done #318