4,951
edits
Falterfire (talk | contribs) (Removed more no-wraps) |
Falterfire (talk | contribs) (Added another check for Melee weapons) |
||
Line 316: | Line 316: | ||
local isMatch = true | local isMatch = true | ||
if style == 'Melee' then | if style == 'Melee' then | ||
if item.defenceLevelRequired == nil and not Shared.contains(styleOverrides.Melee, item.name) then isMatch = false end | if (item.defenceLevelRequired == nil and item.attackLevelRequired == nil) and not Shared.contains(styleOverrides.Melee, item.name) then isMatch = false end | ||
elseif style == 'Ranged' then | elseif style == 'Ranged' then | ||
if item.rangedLevelRequired == nil and not Shared.contains(styleOverrides.Ranged, item.name) then isMatch = false end | if item.rangedLevelRequired == nil and not Shared.contains(styleOverrides.Ranged, item.name) then isMatch = false end |