I'm not sure how one could automate that spell, given that the caster is allowed to choose which of the two d8s to use to select the damage type. It might be possible using a Rollable Table, but I'm not sure how (or if it's even possible) to extract the underlying numeric value of the roll to then feed that into a damage total. I've just tried a few simple and unsuccessful experiments along those lines, and the apparent numeric value for the table roll remains zero: rolling 1t[Test-table] (a 1) = 0 rolling 1t[Test-table]+0 (a 1)+0 = 0 rolling 1t[Test-table]+0 (c 3)+0 = 0 rolling 1t[Test-table]+0 (b 2)+0 = 0 rolling 1t[Test-table] [0]+0 (c 3)+0 = 0