libdebuff: fix rank extraction

This commit is contained in:
Road-block
2019-02-26 10:08:44 +02:00
parent e9f596f0e7
commit ee86bf499b
+1 -1
View File
@@ -21,7 +21,7 @@ local scanner = libtipscan:GetScanner("libdebuff")
function libdebuff:GetDuration(effect, rank)
if L["debuffs"][effect] then
local rank = rank and tonumber(string.gsub(rank, RANK .. " ", "")) or 0
local rank = rank and tonumber((string.gsub(rank, RANK .. " ", ""))) or 0
local rank = L["debuffs"][effect][rank] and rank or libdebuff:GetMaxRank(effect)
local duration = L["debuffs"][effect][rank]