Skip to content

Commit

Permalink
Enable Assigned Roles on Classic Era
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Dec 23, 2024
1 parent 74fbdec commit 630bf1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ if apiLevel <= 2 then
local SeasonOfDiscovery = true
if not SeasonOfDiscovery then
GetActiveTalentGroup = function() return 1 end
UnitGroupRolesAssigned = function(unit) if GetPartyAssignment("MAINTANK", unit) then return "TANK" end end
end
UnitHasVehicleUI = dummyFalse
UnitInVehicle = dummyFalse
UnitUsingVehicle = dummyFalse
UnitGroupRolesAssigned = function(unit) if GetPartyAssignment("MAINTANK", unit) then return "TANK" end end
end

-- AptechkaUserConfig = setmetatable({},{ __index = function(t,k) return AptechkaDefaultConfig[k] end })
Expand Down Expand Up @@ -2370,15 +2370,15 @@ end
function AptechkaHeader:UpdateSortingMethod()
-- setAttributesWithoutResponse skips OnAttrChanged callback
if Aptechka.db.profile.sortMethod == "ROLE" then
if apiLevel <= 2 then
helpers.setAttributesWithoutResponse(self,
"groupingOrder", "MAINTANK,MAINASSIST",
"groupBy", "ROLE")
else
-- if apiLevel <= 2 then -- Roles are in Classic Era now
-- helpers.setAttributesWithoutResponse(self,
-- "groupingOrder", "MAINTANK,MAINASSIST",
-- "groupBy", "ROLE")
-- else
helpers.setAttributesWithoutResponse(self,
"groupingOrder", "TANK,HEALER,DAMAGER,NONE",
"groupBy", "ASSIGNEDROLE")
end
-- end
self:SetAttribute("sortMethod", "INDEX")
elseif Aptechka.db.profile.sortMethod == "NAME" then
helpers.setAttributesWithoutResponse(self,
Expand Down

0 comments on commit 630bf1e

Please sign in to comment.