Skip to content

Commit

Permalink
Fixes #18, a bug with brand new pets and AH tooltips.
Browse files Browse the repository at this point in the history
  • Loading branch information
MMOSimca committed Oct 28, 2024
1 parent 37cb518 commit aba8998
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BreedTooltips.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ function BPBID_SetBreedTooltip(parent, speciesID, tblBreedID, rareness, tooltipD
end
end

-- Set line for "Current breed's base stats (level 1 Poor)" (have to have tblBreedID for this)
if (BPBID_Options.Breedtip.CurrentStats) and (tblBreedID) then
-- Set line for "Current breed's base stats (level 1 Poor)" (have to have BreedsPerSpecies and tblBreedID for this)
if (BPBID_Options.Breedtip.CurrentStats) and (BPBID_Arrays.BreedsPerSpecies[speciesID]) and (tblBreedID) then
for i = 1, #tblBreedID do
local currentbreed = tblBreedID[i]
local currentstats = "\124cFFD4A017Breed " .. internal.RetrieveBreedName(currentbreed) .. "*:\124r " .. (BPBID_Arrays.BasePetStats[speciesID][1] + BPBID_Arrays.BreedStats[currentbreed][1]) .. "/" .. (BPBID_Arrays.BasePetStats[speciesID][2] + BPBID_Arrays.BreedStats[currentbreed][2]) .. "/" .. (BPBID_Arrays.BasePetStats[speciesID][3] + BPBID_Arrays.BreedStats[currentbreed][3])
Expand Down Expand Up @@ -216,8 +216,8 @@ function BPBID_SetBreedTooltip(parent, speciesID, tblBreedID, rareness, tooltipD
end
end

-- Set line for "Current breed's stats at level 25" (have to have tblBreedID for this)
if (BPBID_Options.Breedtip.CurrentStats25) and (tblBreedID) then
-- Set line for "Current breed's stats at level 25" (have to have BreedsPerSpecies and tblBreedID for this)
if (BPBID_Options.Breedtip.CurrentStats25) and (BPBID_Arrays.BreedsPerSpecies[speciesID]) and (tblBreedID) then
for i = 1, #tblBreedID do
local currentbreed = tblBreedID[i]
local hex = "\124cFF0070DD" -- Always use rare color by default
Expand Down

0 comments on commit aba8998

Please sign in to comment.