1 Like
Hi @Timofey_K and welcome to the forum!
On line 8 you should have:
hero.say(neutrals[0].id)
Do you encounter any more problems with this code?
Выкарыстоўваючы масіў для выкліку, вы павінны выклікаць адзін блок за адзін раз, можа быць, замест гэтага:
while True:
neutrals = hero.findEnemies()
neutral = hero.findNearest(neutrals)
if neutral:
hero.say(neutral.id)
pass
1 Like