Skip to content

Commit a08b6a0

Browse files
authored
fix invalid skill ids in party tab source (#8211)
1 parent 4ec28c3 commit a08b6a0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Classes/PartyTab.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,9 +857,21 @@ function PartyTabClass:ParseBuffs(list, buf, buffType, label)
857857
end
858858
if currentName ~= "SKIP" then
859859
if mod.source:match("Item") then
860-
_, mod.source = mod.source:match("Item:(%d+):(.+)")
860+
local oldItem
861+
oldItem, mod.source = mod.source:match("Item:(%d+):(.+)")
861862
mod.source = "Party - "..mod.source
862863
end
864+
if mod.source:match("Skill") then
865+
local skillId = mod.source:match("Skill:(.+)")
866+
if not data.skills[skillId] then
867+
local minimisedName = currentName:gsub(" %l",string.upper):gsub(" ","")
868+
if data.skills[minimisedName] then
869+
mod.source = "Skill:"..minimisedName
870+
else
871+
mod.source = skillId
872+
end
873+
end
874+
end
863875
if buffType == "Link" then
864876
mod.name = mod.name:gsub("Parent", "PartyMember")
865877
for _, modTag in ipairs(mod) do

0 commit comments

Comments
 (0)