Change check on UnitGroupRolesAssigned

Check in UnitGroupRolesAssigned checked for function existence. The function exists in TBC, but returns NONE for everyone. Changed check for IsTimewalkWoW
This commit is contained in:
Flamanis
2022-05-16 10:15:44 -05:00
committed by GitHub
parent a988f7b429
commit 575c3eb819
+1 -1
View File
@@ -72,7 +72,7 @@ function DF.IsTBCWow()
end
function DF.UnitGroupRolesAssigned (unitId)
if (UnitGroupRolesAssigned) then
if (not DF.IsTimewalkWoW()) then --Was function exist check. TBC has function, returns NONE. -Flamanis 5/16/2022
return UnitGroupRolesAssigned (unitId)
else
--attempt to guess the role by the player spec