Anonymous

Module:Sandbox/AuronTest: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 398: Line 398:


function p.getCombatStyleName(styleNum)
function p.getCombatStyleName(styleNum)
   return type(styleNum) == 'number' and Shared.titleCase(ConstantData.attackType[styleNum]) or "ERROR: Invalid combat style[[Category:Pages with script errors]]"
   if type(styleNum) == 'number' then
  local styleName = ConstantData.attackType[styleNum]
  if styleName ~= nil then
    return Shared.titleCase(styleName)
  end
  end
  return "ERROR: Invalid combat style[[Category:Pages with script errors]]"
end
end