public int CountAggro(Creature target)
{
_creaturesRWLS.EnterReadLock();
try
{
return _creatures.Values.OfType<NPC>().Count(npc =>
!npc.IsDead &&
npc.AI != null &&
npc.AI.State == AiScript.AiState.Aggro &&
npc.Target == target
);
}
finally
{
_creaturesRWLS.ExitReadLock();
}
}