[SOLVED] Toil and trouble....certainly toil for me!


#21

That method is not available for friends so you’ll have to use hero there, but change the rest to friend in the definitions. friend.FindNearest(hero.findByType(“witch”))


#22


#23


#24

witch = friend.FindNearest(hero.findByType(“witch”))
enemy = friend.FindNearestEnemy()

The parameter, friend, is missing where you call the function in the while True loop in the enemy definition.


#25

massive thanks! :grinning::blush: