I've created a unit with a negative healing_per_tick = -1
So it should only have a certain time to live.
What seems to happen though, is that once it reaches 0, it does not die, and actually becomes immortal once it reaches 0.
So, the player of player's units can kill it if they damage it before it's health reaches 0, but once it reaches 0, it can't be killed....
![Image](https://forums.factorio.com/images/ext/91f316f04fa7e104ca2bfbf66cc676df.jpg)
Once it reaches 0, I cant target it to kill...
![Image](https://forums.factorio.com/images/ext/81a0c5a9fb5856b283e2e2a62d85deff.gif)
This seems to be a bug, but I'm not entirely sure...
Any code I can provide to help out?