Beispiel #1
0
 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
                                                      Interrupter.InterruptableSpellEventArgs e)
 {
     if (sender.IsValidTarget() && sender.IsEnemy)
     {
         if (MenuManager.GetSubMenu("Automatic").CheckBox("E.Spells") && ImmobileTracker.GetETime() <= e.EndTime - Game.Time)
         //TODO
         {
             SpellManager.E.Cast(sender.Position);
         }
     }
 }
Beispiel #2
0
 private static void Main()
 {
     Loading.OnLoadingComplete += delegate
     {
         if (Util.MyHero.Hero != EloBuddy.Champion.Jinx)
         {
             return;
         }
         Chat.Print(AddonName + " made by " + Author + " loaded, have fun!.");
         Util.Initialize();
         MyTargetSelector.Initialize();
         SpellManager.Initialize();
         MenuManager.Initialize();
         DrawManager.Initialize();
         ModeManager.Initialize();
         ImmobileTracker.Initialize();
         JungleStealer.Initialize();
         Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
         Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
         Dash.OnDash += Dash_OnDash;
     };
 }