Dear sirs,
On the level munchkin-harvest the function “cleave” does not work.
I tried this:
while(true) {
var enemy = hero.findNearestEnemy();
if(enemy){
if (hero.isReady(“cleave”)) {
hero.cleave(enemy);
}
}
else {
hero.attack(enemy);
}
}
This
while(true) {
var enemy = hero.findNearestEnemy();
if (hero.isReady(“cleave”)) {
hero.cleave(enemy);
}
else {
hero.attack(enemy);
}
}
And this
while(true) {
var enemy = hero.findNearestEnemy();
if(enemy){
if (hero.isReady(“cleave”)) {
hero.cleave(enemy);
}
else {
hero.attack(enemy);
}
}
}
Always Hero only attack the enemy without “cleave”.
Please assist to resolve this problem.