Mesmerize and line of sight

https://underhound.eu/crawl/morgue/Colgate/Colgate.txt

How rules for breaking line of sight for mesmerize work? I thought I could walk away here, but apparently not. Does it need something else than clouds to work?

1 Thank