Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
getMonsterPassives: Fix detection for presence of passive abilities
(Amend odd indentation; _getMonsterCombatLevel/_getMonsterAreas: Refactor)
(getMonsterPassives: Fix detection for presence of passive abilities)
Line 581: Line 581:


local result = ''
local result = ''
 
if monster.passiveID ~= nil then
if monster.hasPassive then
result = result .. '===Passives==='
result = result .. '===Passives==='
for i, passiveID in pairs(monster.passiveID) do
for i, passiveID in pairs(monster.passiveID) do