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