Here is the map. I'm not saving, as everything happens immediately. The hero Orin has the Cloak skill.
I tried it. In my case, he attacks regardless.
But I wouldn't be surprised if casting Cloak/See Invisible, etc., could lead to different random outcomes and, consequently, different AI behavior.