This is not a bug.
You spotted the "drain bot" feature. ;)
There is an option in settings.plx to enable that. Instead of just killing the
bot on hcf.py it will play takeovergame against you, if you win, the bot will
die but heal you by a bit of its HPs.