// Look for Voll
var voll =
LokiPoe.ObjectManager.GetObjects(LokiPoe.ObjectManager.PoeObjectEnum.Voll_Emperor_of_Purity).FirstOrDefault() as
Monster;
// If we found him, and he's not dead.
if (voll != null && !voll.IsDead)
{
// Blacklist him if he's not already.
if (!Blacklist.Contains(voll.Id))
{
Blacklist.Add(voll.Id, TimeSpan.FromHours(1), "Voll");
}
// Now blacklist all mobs that are within 50 units of him to keep the bot from going too close.
var vollPos = voll.Position;
foreach (var target in LokiPoe.ObjectManager.GetObjectsByType<Monster>().ToList())
{
if (!Blacklist.Contains(target.Id))
{
if (target.Position.Distance(vollPos) < 50)
{
Blacklist.Add(target.Id, TimeSpan.FromHours(1), "Near Voll");
}
}
}
}