Anonymous

Module:Attacks/Tables: Difference between revisions

From Melvor Idle
Use printError function
(_getSpecialAttackTable: Exclude Golbin raid items)
(Use printError function)
Line 241: Line 241:
table.sort(validEffectNames, function(a, b) return a < b end)
table.sort(validEffectNames, function(a, b) return a < b end)


return 'ERROR: Invalid effect name "' .. effectName .. '", must be one of: ' .. table.concat(validEffectNames, ', ') .. '[[Category:Pages with script errors]]'
return Shared.printError('Invalid effect name "' .. effectName .. '", must be one of: ' .. table.concat(validEffectNames, ', '))
end
end
end
end