The Prismatic Spray spell needs to be rolled x number of times depending of the number of enemies. That part is easy. The problem starts when I roll the d8 for the effect. If the result of d8 is 5 or less, it should roll 10d6 damage. If the result is 6 or 7, no further rolls on my part. But if the result is 8, it should roll the d8 again twice and add the two effects (rerolling any 8). How do I insert a conditions like these to avoid making several rolls manually?