Fix HasSoulgem function to return number of soulgems