Catalysis of the reaction: (6AS,11AS)-3,6A,9-trihydroxypterocarpan + dimethylallyl-pyrophosphate = glyceollin + diphosphate.
dimethylallylpyrophosphate:trihydroxypterocarpan dimethylallyl transferase activity