Sarven road glitch

i have sucsessfully completed sarven road, but it does not seem to finish. I have killed all ogre scouts and made it to the oasis, but all he does is sit there and walk through the oasis, until I run out of time.

This is the code i used:

loop:
    x = self.pos.x + 10
    y = self.pos.y + 10
    enemy = self.findNearestEnemy()
    if enemy:
        self.attack(enemy)
    else:
        self.moveXY(x, y)

please help, i need to get past this level.

This is an interesting bug I never encountered before, but since I tried your code, I also fail this level.

As workaround, try the following code:

x = 5
y = 5

loop:
    enemy = self.findNearestEnemy()
    
    if enemy:
        self.attack(enemy)
    else:
        x = x + 10
        y = y + 10
        self.moveXY(x, y)

It uses fixed coordinates and not relatives, but will do the trick for this level. The problem is that you walk around the target-zone, missing the goal-trigger.

I just embiggened the goal so that it’s harder to accidentally miss–sorry about that! Any better now?