Im stuck on that level… please help, my hero doesnt attack them with normal attack and uses
cleave only once.
while(true) {
var enemy = hero.findNearestEnemy();
if(enemy) {
var distance = hero.distanceTo(enemy);
if(distance < 5) {
if (hero.isReady("cleave")){
hero.cleave(enemy);
}
} else {
hero.attack(enemy);
}
}
}