use emissive for static lighting not working if pluging in any mathematical operation

so i’m trying to use my procedural windows to light the scene. everything is set to static, emissive boosted and so on
but it didn’t work and ive narrowed it down to:
any mathematical node or an if or so will break the “use emissive for static lighting”
you can reproduce it with a setup like this:


will look like this:

any ideas?
looks like i need to set a couple of hundred reclights…