Skip to content

Commit

Permalink
Merge pull request #311 from Flamanis/master
Browse files Browse the repository at this point in the history
DF fw.lua fixes
  • Loading branch information
Tercioo authored Jun 4, 2022
2 parents 671eab4 + a81a1fd commit d0d7f9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 316
local dversion = 317
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)

Expand Down Expand Up @@ -76,7 +76,7 @@ local roleBySpecTextureName = {
DruidFeralCombat = "DAMAGER",
DruidRestoration = "HEALER",

HunterBeastMaster = "DAMAGER",
HunterBeastMastery = "DAMAGER",
HunterMarksmanship = "DAMAGER",
HunterSurvival = "DAMAGER",

Expand Down Expand Up @@ -154,9 +154,9 @@ function DF.UnitGroupRolesAssigned(unitId)
local role = UnitGroupRolesAssigned(unitId)

if (role == "NONE" and UnitIsUnit(unitId, "player")) then
local specializationIndex = GetSpecialization()
local specializationIndex = GetSpecialization() or 0
local id, name, description, icon, role, primaryStat = GetSpecializationInfo(specializationIndex)
return role
return id and role or "NONE"
end

return role
Expand Down

0 comments on commit d0d7f9e

Please sign in to comment.