@@ -111,8 +111,9 @@ get = function(name,class) local c = sorcery.itemclass.classes[class] local o if not c then return false end + if type(name) ~= 'string' then name = name:get_name() end if c.predicate then o = c.predicate(name) if o then return o end