Anonymous

Module:Items/UseTables: Difference between revisions

From Melvor Idle
Fixed Mastery Tokens claiming they were useful for all skills
(updated hitpoints skillcape -> HP skillcape)
(Fixed Mastery Tokens claiming they were useful for all skills)
Line 91: Line 91:


   --If the item has any modifiers that affect a given skill, add it to those lists
   --If the item has any modifiers that affect a given skill, add it to those lists
   if item.modifiers ~= nil then
  --Added an exception for Mastery Tokens since they were being incorrectly flagged as usable for all skills
   if item.modifiers ~= nil and (item.isToken == nil or not item.isToken) then
     local skillArray = Constants.getModifierSkills(item.modifiers)
     local skillArray = Constants.getModifierSkills(item.modifiers)
     for i, skillName in Shared.skpairs(skillArray) do
     for i, skillName in Shared.skpairs(skillArray) do