Skip to content

Commit

Permalink
fix formatBuffs for herotalent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Aug 10, 2024
1 parent 862e3a2 commit fdf97f9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,15 @@ local function formatBuffs(input, type, unit)
for _, spellId in pairs(sorted) do
if not specDB.SpellsWithPvpTalent[spellId] and not bannedAuras[spellId] then
local withTalent = "";
if (specDB.spellIdToTalentId[spellId]) then
local spellName = GetSpellInfo(spellId)
if specDB.spellIDIsHero[spellId] then
withTalent = (", herotalent = %d"):format(specDB.spellIdToTalentId[spellId])
elseif specDB.spellNameIsHero[spellName] then
withTalent = (", herotalent = %d"):format(specDB.spellNameToTalentId[spellName])
elseif specDB.spellIdToTalentId[spellId] then
withTalent = (", talent = %d"):format(specDB.spellIdToTalentId[spellId])
else
local spellName = GetSpellInfo(spellId)
if specDB.spellNameToTalentId[spellName] then
withTalent = (", talent = %d"):format(specDB.spellNameToTalentId[spellName])
end
elseif specDB.spellNameToTalentId[spellName] then
withTalent = (", talent = %d"):format(specDB.spellNameToTalentId[spellName])
end
local spellName = GetSpellInfo(spellId)
if not cacheSpellName[spellName] then
Expand Down

0 comments on commit fdf97f9

Please sign in to comment.