I use a macro for my shadowflare that fixes this problem at least in dungeons and out in the world. Saves me messing around with targeting. Just have someone/thing targeted and hit the macro and the spell goes off.

/micon "Shadow Flare"
/ac "Shadow Flare" <t>
/ac "Shadow Flare"