Module:CombatAreas: Difference between revisions

_getAreaRequirements: Avoid repeating the same requirement twice
(getMonsterAreas: Add handling for Lair of the Spider Queen random monster pool)
(_getAreaRequirements: Avoid repeating the same requirement twice)
Line 96: Line 96:


if area.unlockRequirement ~= nil then
if area.unlockRequirement ~= nil then
        addReqsToArray(resultArray, area.unlockRequirement)
-- Avoid repeating the same requirements twice, can happen for some dungeons e.g. Impending Darkness
if area.entryRequirements == nil or mw.dumpObject(area.unlockRequirement) ~= mw.dumpObject(area.entryRequirements) then
        addReqsToArray(resultArray, area.unlockRequirement)
        end
end
end