Skip to content

Commit

Permalink
Better management of spell links in buffs/debuffs lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnpsp committed Dec 28, 2023
1 parent 8b1d225 commit c58966f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Options/modules/statuses/StatusAura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,15 +490,15 @@ function Grid2Options:MakeStatusAuraListOptions(status, options, optionParams)
wipe(status.dbx.auras)
local auras = { strsplit("\n,", strtrim(v)) }
for _,name in pairs(auras) do
local aura = strtrim(name)
local prefix, links = string.match(name,"^(.-)(|c.*)")
local aura = strtrim(prefix or name)
if #aura>0 then
local count = #status.dbx.auras
for aura in string.gmatch(aura, "Hspell:(%d+):") do
table.insert( status.dbx.auras, tonumber(aura) or tonumber(strmatch(aura,'^.+<(%d+)')) or aura )
end
if links then -- check for spell links
for aura in string.gmatch(links, "Hspell:(%d+):") do
table.insert( status.dbx.auras, tonumber(aura) or aura )
end
if count==#status.dbx.auras then
table.insert( status.dbx.auras, tonumber(aura) or tonumber(strmatch(aura,'^.+<(%d+)')) or aura )
end
end
end
status:Refresh()
Expand Down

0 comments on commit c58966f

Please sign in to comment.