For many spells in the Pathfinder 1e system, they cap at X caster level (fireball caps at 10th, disintegrate at 20th, etc). Is there a way to get the minimum of two values (either my CL or whatever cap) and then roll that many dice? I.e. if I'm casting disintegrate, it would be like /roll 2*min(CL, 20)d6 or something. I'm trying other functions like kl, but I'm missing something.