Beispiel #1
0
        private static void Clear()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("manaClear"))
            {
                return;
            }


            if (E.IsReady() && Utilities.Enabled("eClear"))
            {
                KalistaLogics.RendClear(Utilities.Slider("eClearCount"));
            }
        }
Beispiel #2
0
 private static void Harass()
 {
     if (ObjectManager.Player.ManaPercent < Utilities.Slider("manaHarass"))
     {
         return;
     }
     if (Q.IsReady() && Utilities.Enabled("qHarass"))
     {
         KalistaLogics.PierceCombo();
     }
     if (E.IsReady() && Utilities.Enabled("eHarass"))
     {
         KalistaLogics.RendHarass(Utilities.Slider("eSpearCount"));
     }
 }
Beispiel #3
0
        private static void Jungle()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("manaJungle"))
            {
                return;
            }

            if (Q.IsReady() && Utilities.Enabled("qJungle"))
            {
                KalistaLogics.PierceJungleClear(Q);
            }
            if (E.IsReady() && Utilities.Enabled("eJungle"))
            {
                KalistaLogics.RendJungleClear();
            }
        }
Beispiel #4
0
        private void KalistaOnUpdate(EventArgs args)
        {
            switch (Initializer.Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Clear();
                Jungle();
                break;
            }
            if (Utilities.Enabled("use.balista"))
            {
                KalistaLogics.Balista(Utilities.Slider("balista.minrange"), Utilities.Slider("balista.maxrange"), R);
            }
            if (Utilities.Enabled("use.skalista"))
            {
                KalistaLogics.SKalista(Utilities.Slider("skalista.minrange"), Utilities.Slider("skalista.maxrange"), R);
            }
            if (Utilities.Enabled("qKS"))
            {
                KalistaLogics.KillStealWithPierce();
            }
            if (Utilities.Enabled("eKS"))
            {
                KalistaLogics.KillStealWithRend();
            }
            if (Utilities.Enabled("qImmobile"))
            {
                KalistaLogics.ImmobilePierce();
            }
            if (Utilities.Enabled("saveSupport"))
            {
                KalistaLogics.SupportProtector(R);
            }
        }
Beispiel #5
0
        private void OnCombo()
        {
            if (Q.IsReady() && Utilities.Enabled("q.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(Q.Range)))
                {
                    Q.CastOnUnit(enemy);
                }
            }
            if (W.IsReady() && Utilities.Enabled("w.combo"))
            {
                if (Utilities.Enabled("w.passive.combo"))
                {
                    var target = TargetSelector.GetTarget(Utilities.Slider("w.combo.max.distance"), TargetSelector.DamageType.Physical);
                    if (target != null && target.IsValidTarget(Utilities.Slider("w.combo.max.distance")) &&
                        target.HasBuff("jhinespotteddebuff") && target.Distance(ObjectManager.Player.Position) > Utilities.Slider("w.combo.min.distance"))
                    {
                        W.Do(target, Utilities.HikiChance("hitchance"));
                    }
                }
                else
                {
                    var target = TargetSelector.GetTarget(Utilities.Slider("w.combo.max.distance"), TargetSelector.DamageType.Physical);
                    if (target != null && target.IsValidTarget(Utilities.Slider("w.combo.max.distance")) &&
                        target.Distance(ObjectManager.Player.Position) > Utilities.Slider("w.combo.min.distance"))
                    {
                        W.Do(target, Utilities.HikiChance("hitchance"));
                    }
                }
            }

            if (E.IsReady() && Utilities.Enabled("e.combo"))
            {
                var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical);
                if (target != null && target.IsValidTarget(E.Range) && Utilities.IsImmobile(target))
                {
                    E.Do(target, Utilities.HikiChance("hitchance"));
                }
            }
        }
Beispiel #6
0
        private void OnJungle()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("jungle.mana"))
            {
                return;
            }
            var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Jhin.Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            if (mobs == null || (mobs.Count == 0))
            {
                return;
            }

            if (Q.IsReady() && Utilities.Enabled("q.jungle"))
            {
                Q.Cast(mobs[0]);
            }

            if (W.IsReady() && Utilities.Enabled("w.jungle"))
            {
                W.Cast(mobs[0]);
            }
        }
Beispiel #7
0
 private void OnHarass()
 {
     if (ObjectManager.Player.ManaPercent < Utilities.Slider("harass.mana"))
     {
         return;
     }
     if (Q.IsReady() && Utilities.Enabled("q.harass"))
     {
         var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
         if (target != null && target.IsValidTarget(Q.Range))
         {
             Q.CastOnUnit(target);
         }
     }
     if (W.IsReady() && Utilities.Enabled("w.harass"))
     {
         var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical);
         if (target != null && target.IsValidTarget(W.Range))
         {
             W.Do(target, Utilities.HikiChance("hitchance"));
         }
     }
 }
Beispiel #8
0
        private void OnClear()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("clear.mana"))
            {
                return;
            }
            if (Q.IsReady() && Utilities.Enabled("q.clear"))
            {
                var min = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range).MinOrDefault(x => x.Health);
                if (min != null)
                {
                    Q.CastOnUnit(min);
                }
            }

            if (W.IsReady() && Utilities.Enabled("w.clear"))
            {
                var min = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, W.Range);
                if (min != null && W.GetLineFarmLocation(min).MinionsHit >= Utilities.Slider("w.hit.x.minion"))
                {
                    W.Cast(W.GetLineFarmLocation(min).Position);
                }
            }
        }