diff --git a/src/battle/ai.c b/src/battle/ai.c index a069951..5bd2ab7 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -352,9 +352,11 @@ static void preAttack(void) { fireGuns(self); } - else if (self->missiles) + else if (self->missiles && getDistance(self->x, self->y, self->target->x, self->target->y) >= 350) { fireMissile(self); + + self->action = doAI; } } else