Hey, I got a problem with the level “Siege of Stonehold”, I just can’t make the code " right", and I don’t know what I am supposed to change
loop {
var enemy = this.findEnemies();
var green = this.findFlag("green");
if (green) {
this.pickUpFlag(flag);
this.moveXY(19, 69);
} else {
this.findNearest(enemy);
if (this.isReady("cleave")) {
this.cleave(enemy);
} else {
this.attack(enemy);
}
}
}
There is supposedly an error in Line 15 ( this.cleave(enemy) )… apparently I am told that “ArgumentError is not defined”… I rechecked everything ( that I know) could be wrong and tried since yesterday to make it work… I am really desperate as I really don’t even know, what’s wrong (as I just did everything as in the levels befor)