The closest thing i found so far is the Elementalist Class Archetype. It gives access to some metamagic feats that add elemental trait to your spells.
Dousing Spell points out that by adding the water trait from the metamagic feat, it counts for weaknesses and resistances.
Dousing Spell wrote:
You enhance your spell with elemental water, soaking the target. If the next action you use is to Cast a Spell targeting a single creature, you soak the target of the spell with water. If the target has persistent acid or fire damage, the DC to end those conditions is reduced to 10, and the creature can attempt a flat check to end those types of persistent damage immediately. The spell gains the water trait (causing it to deal extra damage to creatures with weakness to water).