Skip to content
Snippets Groups Projects
Commit df5c4b12 authored by Simon André Curtis's avatar Simon André Curtis
Browse files

That seems to fix that naughty hasShield code.

parent a895435f
No related branches found
No related tags found
No related merge requests found
......@@ -2290,8 +2290,8 @@ end
function _M:hasShield()
if self:attr("disarmed") then return nil end
local shield1 = self:getInven("OFFHAND")[1]
local shield2 = self:getInven("MAINHAND")[1]
local shield1 = self:getInven("OFFHAND") and self:getInven("OFFHAND")[1]
local shield2 = self:getInven("MAINHAND") and self:getInven("MAINHAND")[1]
-- Switch if needed to find one
if not shield1 then shield1, shield2 = shield2, nil end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment