Bug lvl "Leave it to cleaver"

I think my code is correct, but eventually time stops and my hero is still alive.

1 Like

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!

Hi Daniel_Barrionuevo,

Welcome to the forum!

On line 7 of your first screenshot (the line is deleted in the second screenshot), you need to write

if hero.isReady("cleave") {

You’ll need to work out where to put the matching } as well.

While you don’t need to use the indents in JavaScript, I find it helps a lot to keep track of which curly brackets are active. If you use the indents, the comments in CoCo will also line up with your current code, which gives clues as to where you’re going wrong.

Jenny

1 Like

Hi Jenny

I must thank you for your comment, the truth helped me to overcome this level, thank you very much !!

Daniel

1 Like