Module:Items/UseTables: Difference between revisions

_getItemUses: Classify items with special attacks as used in combat
(Fixed Mastery Tokens claiming they were useful for all skills)
(_getItemUses: Classify items with special attacks as used in combat)
Line 100: Line 100:


   --First things added to the list are non-skill things that are easy to check
   --First things added to the list are non-skill things that are easy to check
   if Items.hasCombatStats(item) or Shared.contains(itemUseArray.Combat, item.name) then
   if Items.hasCombatStats(item) or item.specialAttacks ~= nil or Shared.contains(itemUseArray.Combat, item.name) then
     table.insert(useArray, chr..Icons.Icon({'Combat'}))
     table.insert(useArray, chr..Icons.Icon({'Combat'}))
   end
   end