(fix/libs) LibGroupTalents: Workaround for druid tank spec returning "Feral Combat" instead of "Guardian"

This commit is contained in:
NoM0Re
2025-04-21 18:19:20 +02:00
parent d3ab7a63a2
commit 3336444fda
2 changed files with 23 additions and 13 deletions
+4 -3
View File
@@ -1150,9 +1150,10 @@ local function TriggerInfoApplies(triggerInfo, unit)
end
if triggerInfo.specId then
local spec = WeakAuras.LGT:GetUnitTalentSpec(controllingUnit)
local class = select(2, UnitClass(controllingUnit))
if not (spec and class and triggerInfo.specId[class .. spec]) then
local spec = Private.ExecEnv.GetUnitTalentSpec(controllingUnit)
local _, class = UnitClass(controllingUnit)
local specID = (spec and class) and Private.ExecEnv.GetSpecID(class .. spec) or 0
if not triggerInfo.specId[specID] then
return false
end
end