Beispiel #1
0
 override public void Reset()
 {
     nav     = new Nav();
     target  = new Target();
     kill    = new Kill();
     move    = new Move();
     refresh = new RefreshActive();
     smite   = new SmiteActive();
     Logic   = delegate {
         var creepSpawn = nav.CreepSpawn();
         if (LeagueSharp.Hud.SelectedUnit != null && LeagueSharp.Hud.SelectedUnit.Data <Object>().@class == "creep")
         {
             creepSpawn = LeagueSharp.Hud.SelectedUnit.Data <Creep>().CreepSpawn();
         }
         if (creepSpawn == null)
         {
             return(false);
         }
         var creep = target.Creep(creepSpawn);
         if (creep != null)
         {
             kill.Logic(creep, creepSpawn);
         }
         else
         {
             move.Logic(creepSpawn);
         }
         return(true);
     };
 }
Beispiel #2
0
 public override void Reset()
 {
     if (instance != null)
     {
         return;
     }
     instance = this;
     if (timer != null)
     {
         timer.Disable();
     }
     timer = Timer.Add(delegate {
         if ([email protected])
         {
             foreach (var cs in Interface.data.Values.OfType <CreepSpawn>())
             {
                 cs.Refresh();
             }
         }
     }).Start();
 }