With the new patch 1.15.3 LibClassicSpecs seems to be throwing this error and i cant figure out how to fix it.
Code:
39x ...Ons/BasicUI/Libs/LibClassicSpecs-0/LibClassicSpecs.lua:598: attempt to compare number with string
[string "@BasicUI/Libs/LibClassicSpecs-0/LibClassicSpecs.lua"]:598: in function <...Ons/BasicUI/Libs/LibClassicSpecs/LibClassicSpecs.lua:590>
[string "@BasicUI/Modules/Datapanel.lua"]:2009: in function `CreateStats'
[string "@BasicUI/Modules/Datapanel.lua"]:2400: in function `Refresh'
[string "@BasicUI/Modules/Datapanel.lua"]:2380: in function <BasicUI/Modules/Datapanel.lua:2372>
[string "=[C]"]: ?
When i track down the line in the lua this is what it shows:
Code:
lib.GetSpecialization = function(isInspect, isPet, groupId)
if (isInspect or isPet) then
return nil
end
local specIndex
local max = 0
for tabIndex = 1, GetNumTalentTabs() do
local spent = select(3, GetTalentTabInfo(tabIndex))
if (spent > max) then
specIndex = tabIndex
max = spent
end
end
local classId = select(3, UnitClass("player"))
if (classId == Druid.ID) then
-- Return Druid.Guardian if certain talents are selected
local feralInstinctPoints = select(5, GetTalentInfo(DRUID_FERAL_TAB, DRUID_FERAL_INSTINCT))
local thickHidePoints = select(5, GetTalentInfo(DRUID_FERAL_TAB, DRUID_THICK_HIDE))
if (feralInstinctPoints == 5 and thickHidePoints == 5) then
return DRUID_GUARDIAN_SPEC_INDEX
end
-- return 4 if Resto (3rd tab has most points), because Guardian is 3
if (specIndex == DRUID_GUARDIAN_SPEC_INDEX) then
return DRUID_RESTO_SPEC_INDEX
else
return specIndex
end
end
return specIndex
end
the
Code:
if (spent > max) then
specIndex = tabIndex
max = spent
end
is the section that its saying is bad now but nothing seems to have changed unless with the new patch they removed something.
Any help would be great Thank You.
If you need more info just let me know.