Interestingly this sort of mechanic is somewhat hit and miss with SE. While new mobs (Halicarnassus in Haukke H) have had the LoS patched so that they still hit you with the spell even if you move behind them, old mobs (like mindflayer in AK and pudding boss in WP) can still be interrupted by walking out of their LoS.

They seem to be moving away from the mechanic with new content, without actually patching the old content.