Actually it works, but first you have to select the caster on a world map and then cast the spell; the active caster will cast it on himself.
I agree that it confusing though.
Don't click too much or one of your heroes will get very smart and very weak