Module:Items: Difference between revisions

Fixed a slight issue with placement of negatives
(Swapping over to Auron's 0.21 test version)
(Fixed a slight issue with placement of negatives)
Line 184: Line 184:


function p.hasCombatStats(item)
function p.hasCombatStats(item)
   if not item.isEquipment or item.validSlots == nil and item.equipmentStats ~= nil then
   if item.isEquipment or (item.validSlots == nil and item.equipmentStats ~= nil) then
     -- Ensure at least one stat has a non-zero value
     -- Ensure at least one stat has a non-zero value
     for statName, statVal in pairs(item.equipmentStats) do
     for statName, statVal in pairs(item.equipmentStats) do