Click to cast not working

Running into multiple spells (e.g., Earth Shield, Purify) that you can’t “click to cast”. Put them on your bars with a keybind and you can cast them on a friendly, but using “click to cast” only casts on self. So far I’ve only ran into this on my Shaman.

This is still happening 2 years later. Did you ever find a fix or workaround?