Fix test for player hostility
This commit is contained in:
parent
965e6d4b62
commit
dc094a9d05
@ -660,6 +660,10 @@ AILib.prototype.isFighting = function(ship)
|
||||
{
|
||||
return ship.alertCondition == 3 && ship.target;
|
||||
}
|
||||
else if (ship.isPlayer)
|
||||
{
|
||||
return !ship.isFleeing; // have to assume aggressive
|
||||
}
|
||||
return ship && ship.hasHostileTarget;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user