diff --git a/plugins/lua/sort/info.lua b/plugins/lua/sort/info.lua index 5747713ae7..41a047f16e 100644 --- a/plugins/lua/sort/info.lua +++ b/plugins/lua/sort/info.lua @@ -715,7 +715,7 @@ local function is_risky(unit) if RISKY_PROFESSIONS[unit.profession] or RISKY_PROFESSIONS[unit.profession2] then return true end - if dfhack.units.getReadableName(unit):endswith('necromancer') then return true end + if dfhack.units.getReadableName(unit):find('necromancer') then return true end return not dfhack.units.isAlive(unit) -- detect intelligent undead end