From c2ad23a64e8f138f337a017ae058c198aa5464c9 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sat, 4 Jun 2022 06:10:31 -0500 Subject: [PATCH 1/2] Hunter Beast Mastery fix for TBC/Classic talents --- Libs/DF/fw.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 9397480c..40c1c6c6 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 316 +local dversion = 317 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) @@ -76,7 +76,7 @@ local roleBySpecTextureName = { DruidFeralCombat = "DAMAGER", DruidRestoration = "HEALER", - HunterBeastMaster = "DAMAGER", + HunterBeastMastery = "DAMAGER", HunterMarksmanship = "DAMAGER", HunterSurvival = "DAMAGER", From a81a1fd37ef9766af5ecbeaf9f8cdfee64ffd4ba Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sat, 4 Jun 2022 08:57:26 -0500 Subject: [PATCH 2/2] Fix for GetSpecialization returning nil --- Libs/DF/fw.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 40c1c6c6..d49e28f1 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -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