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:

319430-image-2020-10-20t19-31-49-959z.png

will look like this:

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