Invader healer doesn't suicide when there is no attacker
-
shard3
The healer should suicide when there is no attacker, but I have encountered an exception.
replay: https://screeps.com/a/#!/history/shard3/E49N19?t=12720919
thank @EricGuo for providing the reproduce method.
-
I've got the same problem.
And I've find out a way to reproduce it.
1.Create three invaders,one attacker and two healers
2.Attack the healers with tower
3.When the healers are healing themselves,Delete attacker suddenly
PS:Put the healers next to the tower and surround them with walls while putting the attacker far away from the tower can reproduce the problem easier
-
Marking the topic as solved because this is the expected behavior.
The healer should suicide when there is no attacker
They shouldn't. The expected behavior is that they should suicide when they have nobody to heal. Sometimes (very often) these things are the same, but not at the replay provided: they can heal each other. That brings meaning to their short life so they have no reasons for depression or suicidal inclinations.
-
So how about changing the hint text to this?
The healer should suicide when there is nobody to heal
-
@o4kapuk But i find that the healer didn't suicide when it was alone.
You can find it in reply.
I did some experiment after the two healers died.
-
Were you still shooting it? As long as it can heal itself, it's healing someone. It has to have nothing to heal to flip the off switch.
-
@fangxm if he's under fire, he will heal himself.