The spells are Ice Shard and Teleportation in this case, and as far as I can tell, the conditions for using them are the same. I made a webm to illustrate what's happening.
I think you're probably right. The enemy is actually being highlighted though, so it's a little confusing. I guess that's to indicate that it will find it's way to that enemy through the smoke