Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
m
getSlayerTierMonsterTable: Attempt to resolve input issues again
m (getSlayerTierMonsterTable: Adjust input validation)
m (getSlayerTierMonsterTable: Attempt to resolve input issues again)
Line 888: Line 888:
end
end


function p.getSlayerTierMonsterTable(tier)
function p.getSlayerTierMonsterTable(frame)
   -- Input validation
   -- Input validation
  local tier = frame.args ~= nil and frame.args[1] or frame
   local SlayerTiers = Constants.Slayer.Tiers
   local SlayerTiers = Constants.Slayer.Tiers
   if tier == nil then
   if tier == nil then