Skip to content

Commit bca13c5

Browse files
committed
fix: more C_SpecializationInfo.GetTalentInfo adjustments
1 parent bedf961 commit bca13c5

File tree

4 files changed

+23
-18
lines changed

4 files changed

+23
-18
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## v11.2.6
2+
* Fix #2307 C_SpecializationInfo.GetTalent: query.specializationIndex must be specified.
3+
24

35
## v11.2.5
46
* New condition: Armor Repair Level - Checks the lowest durability percentage of any equipped gear.

Components/Core/Conditions/Categories/Talents.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ elseif ClassicExpansionAtLeast(LE_EXPANSION_MISTS_OF_PANDARIA) then
607607
wipe(Env.TalentMap)
608608

609609
local talentInfoQuery = {};
610+
talentInfoQuery.specializationIndex = TMW.GetCurrentSpecialization();
610611
for tier = 1, MAX_NUM_TALENT_TIERS do
611612
for column = 1, NUM_TALENT_COLUMNS do
612613
talentInfoQuery.tier = tier;

Options/CHANGELOG.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ TMW.CHANGELOG_LASTVER="10.0.0"
44

55
TMW.CHANGELOG = [==[
66
## v11.2.6
7+
* Fix #2307 C_SpecializationInfo.GetTalent: query.specializationIndex must be specified.
8+
79
810
## v11.2.5
911
* New condition: Armor Repair Level - Checks the lowest durability percentage of any equipped gear.

TellMeWhen.lua

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,24 +2834,24 @@ function TMW:UpdateTalentTextureCache()
28342834
local talentInfoQuery = {};
28352835

28362836
for spec = 1, TMW.GetNumSpecializations() do
2837-
for tier = 1, MAX_NUM_TALENT_TIERS do
2838-
for column = 1, NUM_TALENT_COLUMNS do
2839-
talentInfoQuery.tier = tier;
2840-
talentInfoQuery.column = column;
2841-
talentInfoQuery.specializationIndex = spec;
2842-
local talentInfo = C_SpecializationInfo.GetTalentInfo(talentInfoQuery);
2843-
2844-
local name = talentInfo.name
2845-
local tex = talentInfo.fileID
2846-
2847-
local lower = name and strlowerCache[name]
2848-
2849-
if lower then
2850-
SpellTexturesMetaIndex[lower] = tex
2851-
end
2852-
end
2853-
end
2854-
end
2837+
for tier = 1, MAX_NUM_TALENT_TIERS do
2838+
for column = 1, NUM_TALENT_COLUMNS do
2839+
talentInfoQuery.tier = tier;
2840+
talentInfoQuery.column = column;
2841+
talentInfoQuery.specializationIndex = spec;
2842+
local talentInfo = C_SpecializationInfo.GetTalentInfo(talentInfoQuery);
2843+
2844+
local name = talentInfo.name
2845+
local tex = talentInfo.fileID
2846+
2847+
local lower = name and strlowerCache[name]
2848+
2849+
if lower then
2850+
SpellTexturesMetaIndex[lower] = tex
2851+
end
2852+
end
2853+
end
2854+
end
28552855
elseif MAX_TALENT_TIERS and NUM_TALENT_COLUMNS and GetTalentInfo then
28562856
for tier = 1, MAX_TALENT_TIERS do
28572857
for column = 1, NUM_TALENT_COLUMNS do

0 commit comments

Comments
 (0)