diff --git a/src/battle/ai.c b/src/battle/ai.c index 1aeb2b1..e5ed9a7 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -957,7 +957,7 @@ static void wander(void) { moveToTargetLocation(); - if (nearEnemies()) + if (nearEnemies() || getDistance(self->x, self->y, self->targetLocation.x, self->targetLocation.y) <= 100) { self->aiActionTime = 0; }