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