Don't know the extent of the bug, but in the provided save imps stay in the library even when shot at by warlocks. [fx1g0007.zip](https://github.com/Loobinex/keeperfx-unofficial/files/4783243/fx1g0007.zip)