I have reviewed the other topics similar to this and have found nothing similar to the the problem I have, I will post my code but I do not think that is the problem, though I could be wrong…
while(true) {
var enemy = hero.findNearestEnemy();
if (enemy.type == "burl") {
hero.say("I'm not attacking that Burl!");
}
if (enemy.type == "munchkin") {
hero.attack(enemy);
}
if (enemy.type == "thrower") {
hero.attack(enemy);
}
if (enemy.type == "orge") {
hero.moveXY(22, 47);
}
}
The first part of the code executes but when it gets to this code
if (enemy.type == "orge") {
hero.moveXY(22, 47);
}
The hero just stands there, here is a screenshot
I believe that this is a bug but it could be human error on my part so I would like confirmation of my theory. Help would be appreciated.