it keeps on saying that but i dont know how to fix it
that’s because findNearestEnemy doesn’t and never has a parameter
it should be
bottomEnemy = hero.findNearestEnemy()
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!
You format by using the button that looks like: </> And also welcome to the discourse @ac3!
Thanks that really helped
2 Likes
Ok. so it worked? if it did, check the solution box next to whichever post was most helpful. glad to help!