Must use AIF_ASSASSIN, to prevent other missions breaking.
This commit is contained in:
parent
66093a5618
commit
a2736e1533
|
@ -347,8 +347,7 @@ static int canAttack(Entity *e)
|
|||
|
||||
if (!(self->aiFlags & AIF_ASSASSIN))
|
||||
{
|
||||
/* Pandorans will ignore the disable flag - Prisoners will not be taken, lives will not be spared */
|
||||
if (e->flags & EF_MUST_DISABLE && e->side != SIDE_PANDORAN)
|
||||
if (e->flags & EF_MUST_DISABLE)
|
||||
{
|
||||
return e->systemPower > 0;
|
||||
}
|
||||
|
|
|
@ -652,6 +652,10 @@ void updateCapitalShipComponentProperties(Entity *parent, long flags)
|
|||
case ET_COMPONENT_GUN:
|
||||
sprintf(e->name, _("%s (Gun)"), parent->name);
|
||||
e->flags &= ~EF_AI_IGNORE;
|
||||
if (parent->aiFlags & AIF_ASSASSIN)
|
||||
{
|
||||
e->aiFlags |= AIF_ASSASSIN;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue