Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Added normal damage just in case
(Remove Acc and Eva from tables; Fix Abyssal slayer targets being put into base game slayer categories)
(Added normal damage just in case)
Line 955: Line 955:
for _, taskCategory in ipairs(GameData.rawData.slayerTaskCategories) do
for _, taskCategory in ipairs(GameData.rawData.slayerTaskCategories) do
local ms = taskCategory.monsterSelection
local ms = taskCategory.monsterSelection
if ms.type == 'CombatLevel' and monster.damageType == nil then
if ms.type == 'CombatLevel' and (monster.damageType == nil or monster.damageType == 'melvorD:Normal') then
local cmbLevel = p._getMonsterCombatLevel(monster)
local cmbLevel = p._getMonsterCombatLevel(monster)
if cmbLevel >= ms.minLevel and (ms.maxLevel == nil or cmbLevel <= ms.maxLevel) then
if cmbLevel >= ms.minLevel and (ms.maxLevel == nil or cmbLevel <= ms.maxLevel) then