예제 #1
0
        public static void Flee()
        {
            if (!KSpells.W.IsReady() || !KMenu.KAfleeW)
            {
                return;
            }

            Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.W.Range - 50, DamageType.Physical);

            if (targetEnemy != null && targetEnemy.IsValidTarget() && !targetEnemy.IsInvulnerable)
            {
                KSpells.CastW(targetEnemy);
            }
        }
예제 #2
0
        public static void AutoW()
        {
            if (KMenu.KAautoWM >= User.ManaPercent || !KSpells.W.IsReady() || User.IsRecalling() || (KMenu.KAautoWlimit && User.IsUnderEnemyturret()))
            {
                return;
            }

            Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.W.Range - 30, DamageType.Physical);

            if (targetEnemy != null && targetEnemy.IsValidTarget() && !targetEnemy.IsInvulnerable)
            {
                KSpells.CastW(targetEnemy);
            }
        }
예제 #3
0
파일: Program.cs 프로젝트: spall9/Godlike
        public static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (User.ChampionName != "Ashe")
            {
                return;
            }

            KMenu.Initialize();
            KSpells.Initialize();

            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            Interrupter.OnInterruptableSpell += Angel.Interrupt;
            Gapcloser.OnGapcloser            += Angel.Gap;
        }
예제 #4
0
        public static void CastHowkshot()
        {
            if (!KSpells.E.IsReady())
            {
                return;
            }

            if (KMenu.Misc["hawkDragon"].Cast <KeyBind>().CurrentValue)
            {
                KSpells.CastE(new Vector3(9865, 4415, 0));
            }
            if (KMenu.Misc["hawkBaron"].Cast <KeyBind>().CurrentValue)
            {
                KSpells.CastE(new Vector3(5005, 10470, 0));
            }
        }
예제 #5
0
        public static void Interrupt(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs args)
        {
            if (!KMenu.KAInterrupt)
            {
                return;
            }

            if (sender != null)
            {
                Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.R.Range, DamageType.Magical);
                if (targetEnemy != null)
                {
                    KSpells.CastR(targetEnemy);
                }
            }
        }
예제 #6
0
        public static void Gap(Obj_AI_Base sender, Gapcloser.GapcloserEventArgs args)
        {
            if (!KMenu.KAGap)
            {
                return;
            }

            if (sender != null)
            {
                Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.W.Range, DamageType.Physical);
                if (targetEnemy != null)
                {
                    KSpells.CastW(targetEnemy);
                }
            }
        }
예제 #7
0
 public static void Combo()
 {
     if (KMenu.KAcomboQ && KSpells.Q.IsReady())
     {
         if (User.CountEnemiesInRange(800) >= KMenu.KAcomboQlimit)
         {
             KSpells.CastQ();
         }
     }
     if (KMenu.KAcomboW && KSpells.W.IsReady())
     {
         Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.W.Range, DamageType.Physical);
         if (targetEnemy != null)
         {
             KSpells.CastW(targetEnemy);
         }
     }
     if (KMenu.KAcomboR && KSpells.R.IsReady())
     {
         var targetEnemy = TargetSelector.GetTarget(2000, DamageType.Physical);
         if (targetEnemy != null)
         {
             if (!KMenu.KAcomboSR)
             {
                 KSpells.R.Cast(targetEnemy);
             }
             else
             {
                 if (!KSpells.W.IsReady() && User.CountEnemiesInRange(600) == 0 || User.HealthPercent < 25)
                 {
                     KSpells.R.Cast(targetEnemy);
                 }
             }
         }
     }
     if (KMenu.KAcomboYOUMUU)
     {
         if (User.CountEnemiesInRange(1000) >= KMenu.KAcomboYOUMUUlimit)
         {
             KSpells.CastYoumuu();
         }
     }
     if (KMenu.KAcomboBOTRK)
     {
         KSpells.CastBOTRK();
     }
 }
예제 #8
0
        public static void Harass()
        {
            if (KMenu.KAharassM >= User.ManaPercent)
            {
                return;
            }

            if (KMenu.KAharassQ && KSpells.Q.IsReady())
            {
                if (User.CountEnemiesInRange(800) >= KMenu.KAharassQlimit)
                {
                    KSpells.CastQ();
                }
            }
            if (KMenu.KAharassW && KSpells.W.IsReady())
            {
                Obj_AI_Base targetEnemy = TargetSelector.GetTarget(KSpells.W.Range, DamageType.Physical);
                if (targetEnemy != null)
                {
                    KSpells.CastW(targetEnemy);
                }
            }
        }
예제 #9
0
        public static void Jungle()
        {
            if (KMenu.KAjungleM >= User.ManaPercent)
            {
                return;
            }

            Obj_AI_Base targetMonster = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, KSpells.W.Range).Where(X => X.IsValid && !X.IsDead && !X.IsInvulnerable).OrderBy(X => X.MaxHealth).LastOrDefault();

            if (targetMonster == null)
            {
                return;
            }

            if (KMenu.KAjungleQ && KSpells.Q.IsReady())
            {
                KSpells.CastQ();
            }
            if (KMenu.KAjungleW && KSpells.W.IsReady())
            {
                KSpells.CastW(targetMonster);
            }
        }
예제 #10
0
        public static void Lane()
        {
            if (KMenu.KAlaneM >= User.ManaPercent)
            {
                return;
            }

            if (KMenu.KAlaneQ && KSpells.Q.IsReady())
            {
                if (User.CountEnemyMinionsInRange(800) >= KMenu.KAlaneQlimit)
                {
                    KSpells.CastQ();
                }
            }
            if (KMenu.KAlaneW && KSpells.W.IsReady())
            {
                if (User.CountEnemyMinionsInRange(KSpells.W.Range) >= KMenu.KAlaneWlimit)
                {
                    Obj_AI_Base targetMinion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(X => X.IsInRange(Player.Instance.Position, KSpells.W.Range) && X.IsValid && !X.IsDead && !X.IsInvulnerable).OrderBy(X => X.CountEnemyMinionsInRange(KSpells.W.Range)).LastOrDefault();
                    KSpells.CastW(targetMinion);
                }
            }
        }