Module:Monsters: Difference between revisions

getMonsterPassives: Improve passive ability detection further
(getMonsterPassives: Fix detection for presence of passive abilities)
(getMonsterPassives: Improve passive ability detection further)
Line 581: Line 581:


local result = ''
local result = ''
if monster.passiveID ~= nil then
if type(monster.passiveID) == 'table' and Shared.tableCount(monster.passiveID) > 0 then
result = result .. '===Passives==='
result = result .. '===Passives==='
for i, passiveID in pairs(monster.passiveID) do
for i, passiveID in pairs(monster.passiveID) do