Thermoelectric Phase Change
Compile a program to replace an elemental-trait spell's damage type on your next Cast a Spell action: air→electricity/sonic, earth→bludgeoning/piercing, metal→acid/slashing, fire→f...
You compile a program to alter the type of energy output by your magic. If your next action is to Cast a Spell with no duration that has an elemental trait (air, earth, fire, metal, water, or wood) and deals one type of damage, replace the elemental trait with a different elemental trait and the damage type with the corresponding type: air (electricity or sonic), earth (bludgeoning or piercing), metal (acid or slashing), fire (fire), water (cold), wood (poison).
Jailbreak Each creature that critically failed against the spell's basic save or was critically hit by the spell's attack additionally takes 1d6 persistent damage of the type chosen for the spell.