Skip to content

Commit

Permalink
Wrath Role bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Nov 22, 2023
1 parent de2ff1e commit 9dac606
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Options/ProfileSelection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,13 @@ function ns.MakeProfileSelection()
healer = {
name = L"Healer",
type = "toggle",
get = function(info) return AptechkaDB_Char.forcedClassicRole == "HEALER" end,
get = function(info)
local tg = GetActiveTalentGroup()
return AptechkaDB_Char.forcedClassicRole and AptechkaDB_Char.forcedClassicRole[tg] == "HEALER"
end,
set = function(info, v)
local tg = GetActiveTalentGroup()
AptechkaDB_Char.forcedClassicRole = AptechkaDB_Char.forcedClassicRole or {}
AptechkaDB_Char.forcedClassicRole[tg] = "HEALER"
Aptechka:OnRoleChanged()
end,
Expand All @@ -275,9 +279,13 @@ function ns.MakeProfileSelection()
damager = {
name = L"Damager/Tank",
type = "toggle",
get = function(info) return AptechkaDB_Char.forcedClassicRole == "DAMAGER" end,
get = function(info)
local tg = GetActiveTalentGroup()
return AptechkaDB_Char.forcedClassicRole and AptechkaDB_Char.forcedClassicRole[tg] == "DAMAGER"
end,
set = function(info, v)
local tg = GetActiveTalentGroup()
AptechkaDB_Char.forcedClassicRole = AptechkaDB_Char.forcedClassicRole or {}
AptechkaDB_Char.forcedClassicRole[tg] = "DAMAGER"
Aptechka:OnRoleChanged()
end,
Expand Down

0 comments on commit 9dac606

Please sign in to comment.