Don't allow fighters to fire missiles at enemies masking their ids.
This commit is contained in:
parent
633cd7a9ff
commit
b47648dde3
|
@ -503,7 +503,7 @@ static void preAttack(void)
|
||||||
{
|
{
|
||||||
fireGuns(self);
|
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);
|
fireMissile(self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue