From 630bf1ea69aefee0a27ff17f10fb35409bc734c0 Mon Sep 17 00:00:00 2001 From: d87 Date: Mon, 23 Dec 2024 15:36:03 +0700 Subject: [PATCH] Enable Assigned Roles on Classic Era --- Aptechka.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Aptechka.lua b/Aptechka.lua index 898e0ab..f087fa0 100644 --- a/Aptechka.lua +++ b/Aptechka.lua @@ -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 }) @@ -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,