There is a Legacy version
here.

Bottle The Storm
[reaction] Focus 4Uncommon Cleric Electricity Focus Manipulate Source Divine Mysteries pg. 267Domain lightningTrigger You would take
electricity damage.
When lightning is turned against you, you store the charge safely within yourself, unleashing it when the time is right. You gain
electricity resistance 10 against the triggering effect. If you successfully prevent damage in this way, at any time during the spell’s duration, you can spend a single action, which has the
attack trait, to expend the charge and make a spell attack against the AC of a target within 60 feet. This attack deals electricity damage equal to the damage prevented by bottle the storm. If you Cast
bottle the storm a second time before the original duration elapses, or if you do not make this attack within 1 minute, the stored charge dissipates harmlessly.
Heightened (7th) The resistance increases to 15, and you can immediately make the spell attack granted by
bottle the storm as part of the reaction used to Cast the Spell.
Heightened (10th) The resistance increases to 20, and you can immediately make the spell attack granted by
bottle the storm as part of the reaction used to Cast the Spell.