must share lane to pass baton

This commit is contained in:
Luke Meyers 2020-02-05 21:02:11 -08:00
parent 81e0dbe8d7
commit ca3b673b41
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ const (
func maybePassBaton(t *Team) {
for i, b := range t.Bots {
h := t.Baton.Holder
if h.id >= b.id {
if h.id >= b.id || h.Lane != b.Lane {
continue
}
if abs(b.Pos-h.Pos) <= passDistance {