Fix test for player hostility

This commit is contained in:
cim 2013-08-08 11:47:03 +01:00
parent 965e6d4b62
commit dc094a9d05

View File

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