Library update

This commit is contained in:
Tercio Jose
2022-09-30 22:07:42 -03:00
parent 19e0a362c7
commit b758956649
5 changed files with 57 additions and 44 deletions
+16
View File
@@ -255,4 +255,20 @@ function openRaidLib.FilterCooldowns(unitName, allCooldowns, filters)
end
return resultFilters
end
function openRaidLib.FlaskGetBySpellId(spellId)
return LIB_OPEN_RAID_FLASK_BUFF[spellId]
end
function openRaidLib.FlaskGetTier(auraInfo)
local flaskTable = openRaidLib.FlaskGetBySpellId(auraInfo.spellId)
local points = auraInfo.points
for i = 1, #points do
local flaskTier = flaskTable[points[i]]
if (flaskTier) then
return flaskTier
end
end
return 1
end