4,951
edits
Falterfire (talk | contribs) (Swapping over to Auron's 0.21 test version) |
Falterfire (talk | contribs) (Fixed a slight issue with placement of negatives) |
||
Line 184: | Line 184: | ||
function p.hasCombatStats(item) | function p.hasCombatStats(item) | ||
if | 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 |