Don't try to home in on immortal enemies.
It's annoying when this happens. There's no point in attacking an immortal enemy.
This commit is contained in:
parent
22fcdae8cc
commit
0baa48e7ef
|
@ -252,6 +252,9 @@ static object *getRandomEnemy(object *bullet)
|
|||
if ((aliens[i].shield < 1) || (!aliens[i].active))
|
||||
return NULL;
|
||||
|
||||
if (aliens[i].flags & FL_IMMORTAL)
|
||||
return NULL;
|
||||
|
||||
if ((bullet->owner->flags & FL_WEAPCO) && (aliens[i].flags & FL_WEAPCO))
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue