mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
libdebuff: remove obsolete string concatenation
Fixup of the previous commit. Seems like `tonumber` does already take care of the leading space inside the rank.
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ local lastspell
|
||||
|
||||
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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user