Пример #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != ChampName)
            {
                return;
            }


            Config.Initialize();
            TargetSelector2.Initialize();
            ModeManager.Initialize();
            ItemManager.Initialize();
            SpellManager.Initialize();
            PassiveManager.Initialize();
            SpellBlock.Initialize();
            Dispeller.Initialize();

            UpdateChecker.CheckForUpdates();

            while (UpdateChecker.gitVersion == System.Version.Parse("0.0.0.0"))
            {
            }

            ShowNotification(Config.Drawings.ShowNotification);

            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            Obj_AI_Base.OnLevelUp          += Obj_AI_Base_OnLevelUp;
            Drawing.OnDraw += Drawing_OnDraw;

            Player.LevelSpell(SpellSlot.Q);
            Player.SetSkinId(Config.Misc.SkinID);
        }
Пример #2
0
 public static void CastQ()
 {
     var target = TargetSelector2.GetTarget(400, DamageType.Physical);
     if (target.IsValidTarget() && !target.IsZombie)
     {
         PassiveManager.CastQhelper(target);
     }
     else
     {
         target = TargetSelector2.GetTarget(400 + Player.Instance.GetAutoAttackRange(), DamageType.Physical);
         {
             if (target.IsValidTarget() && !target.IsZombie)
             {
                 PassiveManager.CastQhelper(target);
             }
             else
             {
                 target = TargetSelector2.GetTarget(400 + 350, DamageType.Physical);
                 if (target.IsValidTarget() && !target.IsZombie)
                 {
                     PassiveManager.CastQhelper(target);
                 }
             }
         }
     }
 }