Exemple #1
0
 public void OnUpdate_Follow()
 {
     if (this.pause || Variables.Hero == null || !Variables.Hero.IsValid || !Variables.Hero.IsAlive)
     {
         return;
     }
     Variables.Familiars = ObjectManager.GetEntities <Unit>().Where(unit => unit.Name.Contains("npc_dota_visage_familiar") && unit.IsAlive && unit.Team == Me.Team).ToList();
     if (Variables.FollowMode)
     {
         if (Utils.SleepCheck("follow"))
         {
             follow.Execute(Familiars);
             Utils.Sleep(1000, "follow");
         }
     }
 }
Exemple #2
0
 public void OnUpdate_Follow()
 {
     if (this.pause || Variables.Hero == null || !Variables.Hero.IsValid || !Variables.Hero.IsAlive)
     {
         return;
     }
     Variables.Familiars = ObjectManager.GetEntities <Unit>().Where(unit => unit.ClassId.Equals(ClassId.CDOTA_Unit_VisageFamiliar) && unit.IsAlive && unit.Team == Me.Team).ToList();
     if (Variables.FollowMode)
     {
         if (Utils.SleepCheck("follow"))
         {
             follow.Execute(Familiars);
             Utils.Sleep(1000, "follow");
         }
     }
 }