Eagle eye is IMPOSSIBLE!

Hi! You have problem in 7th line. In default code it looks like
doAttack = target # ∆ Change this to use shouldAttack()
so you must turn ^shouldAttack()^ into hero’s function and assign ^doAttack^ to this function. This is the only one step that you should make to modify example code and make it work.
Besides, often forum already have topics with answers to our questions about code difficulties we meet while trying to beat levels) F.e. here Eagle Eye (Backwoods Forest) Problem ) Well, forum searching demands time and efforts, but gives an opportunity not waste time on waiting for answer)
Good luck in coding!