Use classmask and racemask for item too.