This is what my code looks like:
def nearLocation(collector):
return {"x": 24, "y": 35}
hero.chooseItem = nearLocation
The collectors still have the default behaviour of going to the nearest mana fruit and I’m not sure why.
This is what my code looks like:
def nearLocation(collector):
return {"x": 24, "y": 35}
hero.chooseItem = nearLocation
The collectors still have the default behaviour of going to the nearest mana fruit and I’m not sure why.
unit.moveXY(24,35) 20 charsss
I’m using collectors not units, they don’t have a moveXY
method.
I have noticed this too.
@Bryukh do you mind checking this? I can confirm that even when using the exact same code as provided in the sample for using location-based selection, the collectors still go for the nearest fruit instead.