THE SKELETON bug or user error?

I am unsure if this was intentional or if I am just writing the code wrong for this level but when using the “While(true)” statement, defining the variable and setting the hero.attack, the hero does not survive. Unsure if it is required to buy higher equipment with gems but if that is not the case I was hoping for some pointers as to what I am doing wrong.

Code:
while(true) {
var enemy = hero.findNearestEnemy();
hero.attack(enemy);
}

1 Like

Which one? Could you give more information? It’s hard to help you, when we need to guess about your problem.

1 Like

@Bryukh I believe the level is The Skeleton.

1 Like

Oh, I though it was “skeleton bug” :slight_smile:

2 Likes

Which equipment are you using? Could you give a screenshot?

1 Like

I was able to complete this level with 134 health and long sword, no rings or anything else. Could you please provide a bit more information so we can help you out?

1 Like

1 Like

Yeah, “Plain sword” is not enough to pass this level.

2 Likes

If I remember correctly you’ll get more advanced sword, with cleave as soon as you reach forest levels - or you’ll have to do few of them, with long sword you’ll definitely be able to do it - so come back to this level slighty later :slight_smile:

2 Likes

Okay, thanks guys. I bought a better sword to complete it but since I hadn’t gotten one by default I thought there would be a way to beat it without getting a new one.

1 Like