Skip to content

Commit

Permalink
Improve nil check in buff ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jun 3, 2021
1 parent f84c59c commit 4f50918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/StatLogic-1.0/StatLogic-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ local function GetPlayerBuffRank(buff)
local spellID = select(10, AuraUtil.FindAuraByName(buff, "player"))
local rank = GetSpellSubtext(spellID)
if spellID then
return strmatch(rank, "(%d+)") or 1
return rank and strmatch(rank, "(%d+)") or 1
end
end

Expand Down

0 comments on commit 4f50918

Please sign in to comment.