Skip to content

Commit

Permalink
Fixed an issue with CATA where hovering over the spec icon would resu…
Browse files Browse the repository at this point in the history
…lt on an error.
  • Loading branch information
Tercioo committed May 5, 2024
1 parent 3a8c3ea commit f8818ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions frames/window_main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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+)")
Expand Down

0 comments on commit f8818ce

Please sign in to comment.