private static void AutoPush(Hero me)
{
/*var curlane2 = GetCurrentLane(me);
var clospoint2 = GetClosestPoint(curlane2);
Print($"{curlane2}: to: x:{clospoint2.X}/ y:{clospoint2.Y}");*/
// make each clone doshit
foreach (var hero in Objects.Tempest.GetCloneList(me))
{
DoShit(hero, true);
}
// make each illusion do shit
foreach (
var source in
ObjectManager.GetEntities<Hero>()
.Where(x => x.IsIllusion && Utils.SleepCheck("Tempest.Attack.Cd" + x.Handle) && !x.IsAttacking())
)
{
//source.Attack(pos);
DoShit(source);
Utils.Sleep(350, "Tempest.Attack.Cd" + source.Handle);
}
// make each necronomicon unit doshit
foreach (
var necr in
Objects.Necronomicon.GetNecronomicons(me)
.Where(
x =>Utils.SleepCheck(x.Handle + "AutoPush.Attack") && !x.IsAttacking()))
{
if (Menu.Item("AntiFeed.Enable").GetValue<bool>() &&
Heroes.GetByTeam(necr.GetEnemyTeam())
.Any(
x =>
x.IsAlive && x.IsVisible &&
x.Distance2D(necr) <= Menu.Item("AntiFeed.Range").GetValue<Slider>().Value))
{
necr.Move(Objects.Fountains.GetAllyFountain().Position);
}
else
{
DoShit(necr);
}
Utils.Sleep(1000, necr.Handle + "AutoPush.Attack");
}
}