Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Having trouble on the final kithmaze on kithgard dungeon

Despite using findNearestEnemy the game doesn’t detect the ogre, thus making it imposible to attack

You need to add a () to the end of the variable enemy. So in this case, instead of enemy=hero.findNearestEnemy, you will use enemy=hero.findNearestEnemy(). Notice that I added a () to it, because findNearestEnemy() is a function(You’ll understand what they are in the Forest levels).