From b47648dde384ff95f169f79f0fa6b2ee3b5fb244 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 4 Jun 2017 09:32:48 +0100 Subject: [PATCH] Don't allow fighters to fire missiles at enemies masking their ids. --- src/battle/ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index f4197d4..9d8bc2a 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -503,7 +503,7 @@ static void preAttack(void) { fireGuns(self); } - else if (self->missiles && (!(self->target->flags & (EF_NO_KILL|EF_MUST_DISABLE))) && getDistance(self->x, self->y, self->target->x, self->target->y) >= 350) + else if (self->missiles && (!(self->target->flags & (EF_NO_KILL|EF_MUST_DISABLE|EF_FRIENDLY_HEALTH_BAR))) && getDistance(self->x, self->y, self->target->x, self->target->y) >= 350) { fireMissile(self);