private void OnPerceptionLostHearingObject(uint PerceivedObjectId,
bool LastDetection)
{
CreatureObject SeenObject = Server.ObjectManager.GetCreatureObject(PerceivedObjectId, true);
//===== If we've actually lost this creature, we need to populate missing lists. ====//
if (LastDetection)
{
int nReputation = Script.GetReputation(this.ObjectId, PerceivedObjectId);
if (nReputation < 11)
{
if (!Party.EnemiesLost.Contains(SeenObject))
{
if (!Party.CanPartyHear(SeenObject) && !Party.CanPartySee(SeenObject))
{
Party.RemovePartyEnemy(SeenObject);
Party.EnemiesLost.Add(SeenObject);
}
}
}
}
}