Don't allow fighters to fire missiles at enemies masking their ids.

This commit is contained in:
Steve 2017-06-04 09:32:48 +01:00
parent 633cd7a9ff
commit b47648dde3
1 changed files with 1 additions and 1 deletions

View File

@ -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);