Fixed an issue with CATA where hovering over the spec icon would result on an error.

This commit is contained in:
Tercio Jose
2024-05-05 11:15:15 -03:00
parent 3a8c3ea6ea
commit f8818ce057
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -18,8 +18,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()
Details.build_counter = 12699
Details.alpha_build_counter = 12699 --if this is higher than the regular counter, use it instead
Details.build_counter = 12700
Details.alpha_build_counter = 12700 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
+5 -3
View File
@@ -2094,6 +2094,8 @@ local iconFrame_OnEnter = function(self)
instance:BuildInstanceBarTooltip(self)
local bIsClassic = (DetailsFramework.IsClassicWow() or DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFramework.IsCataWow())
local classIcon, classL, classR, classT, classB = Details:GetClassIcon(class)
local specId, specName, specDescription, specIcon, specRole, specClass = DetailsFramework.GetSpecializationInfoByID(spec or 0) --thanks pas06
@@ -2121,9 +2123,9 @@ local iconFrame_OnEnter = function(self)
local talentString = ""
if (type(talents) == "table") then
if (talents and not (DetailsFramework.IsClassicWow() or DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow())) then
if (talents and not bIsClassic) then
for i = 1, #talents do
local talentID, talentName, texture, selected, available = GetTalentInfoByID(talents [i])
local talentID, talentName, texture, selected, available = GetTalentInfoByID(talents[i])
if (texture) then
talentString = talentString .. " |T" .. texture .. ":" .. 24 .. ":" .. 24 ..":0:0:64:64:4:60:4:60|t"
end
@@ -2199,7 +2201,7 @@ local iconFrame_OnEnter = function(self)
local lineHeight = 21
if (RaiderIO) then
if (RaiderIO and not bIsClassic) then
local addedInfo = false
local playerName, playerRealm = actorName:match("(%w+)%-(%w+)")