コード例 #1
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();
 }
コード例 #2
0
 public override void Reset()
 {
     smite         = new Smite();
     smite.WorthEx = (c, cs) => {
         return((cs.Wight() || cs.Golem()) &&
                !LeagueSharp.ObjectManager.Get <LeagueSharp.Obj_AI_Hero>().Any(player => player.IsValid && !player.IsMe && !player.IsDead && player.ServerPosition.Distance([email protected]) < 1500));
     };
     if (timer != null)
     {
         timer.Disable();
     }
     timer = Timer.Add(delegate {
         if ([email protected])
         {
             foreach (var c in Interface.data.Values.OfType <Creep>())
             {
                 smite.Logic(c, c.CreepSpawn());
             }
         }
         ;
     }).Start();
 }