Skip to content

Commit

Permalink
Check nil on unknown hunter/rogue dodge (Fixes #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Feb 11, 2024
1 parent f412042 commit 7643a8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/StatLogic/Vanilla_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ addon.CritPerAgi = {
addon.DodgePerAgi = setmetatable({
["HUNTER"] = setmetatable({}, {
__index = function(_, level)
return addon.CritPerAgi["HUNTER"][level] * 2
local critPerAgi = addon.CritPerAgi["HUNTER"][level]
return critPerAgi and critPerAgi * 2 or nil
end
}),
["ROGUE"] = setmetatable({}, {
__index = function(_, level)
return addon.CritPerAgi["ROGUE"][level] * 2
local critPerAgi = addon.CritPerAgi["ROGUE"][level]
return critPerAgi and critPerAgi * 2 or nil
end
})
}, {
Expand Down

0 comments on commit 7643a8b

Please sign in to comment.