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


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”))




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.


massive thanks! :grinning::blush: