THE SKELETON bug or user error?


#1

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);
}


#2

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


#3

@Bryukh I believe the level is The Skeleton.


#4

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


#5

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


#6

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?


#7


#8

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


#9

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:


#10

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.