4,951
edits
(Add missing skills to itemUseArray, resolves issue with Gold Emerald Ring) |
Falterfire (talk | contribs) (Fixed issue with skillcapes sometimes double-listing their skill as a use) |
||
Line 250: | Line 250: | ||
elseif Shared.contains(item.name, 'Skillcape') and not Shared.contains(ignoreCapes, item.name) then | elseif Shared.contains(item.name, 'Skillcape') and not Shared.contains(ignoreCapes, item.name) then | ||
local skillName = Shared.splitString(item.name, ' ')[1] | local skillName = Shared.splitString(item.name, ' ')[1] | ||
table.insert(useArray, chr..Icons.Icon({skillName, type='skill'})) | --Avoiding double-listing the same skill twice | ||
if not Shared.contains(itemUseArray[skillName], item.name) then | |||
table.insert(useArray, chr..Icons.Icon({skillName, type='skill'})) | |||
end | |||
end | end | ||