Closed gopenshaw closed 9 years ago
I don't think your actually in the range of the HQ, I think the HQ kills you because it's attack has splash damage. So all it has to do is attack the square next to you, which is in its range.
Ouch. What I didn't know hurt me.
So if they have 5 towers we can increase that distance by 2. Any objections? On Jan 11, 2015 5:58 PM, "Michael Gerdes" notifications@github.com wrote:
I don't think your actually in the range of the HQ, I think the HQ kills you because it's attack has splash damage. So all it has to do is attack the square next to you, which is in its range.
— Reply to this email directly or view it on GitHub https://github.com/mgerdes/Battlecode2015/issues/6#issuecomment-69516240 .
Yea, that makes sense. Or you could maybe do something like: if enemyCanSeeMe then distance + 2. because the only way for a building to know to attack a square near you would be if some other unit sees you and broadcasts your position. But I don't know if this would really be that helpful. Edit -- this wouldn't work actually, you can't always know if the enemy can see you.
On a match 3177 the SafeBug method seemed to navigate within range of the HQ. I may be calculating the upgraded distance incorrectly. Maybe there is another mistake...