Esempio n. 1
0
        private static void ByJungle()
        {
            var Monsters = EntityManager.MinionsAndMonsters.GetJungleMonsters(Kayn.Position, 1800f);
            var mana     = Jungle["jmana"].Cast <Slider>().CurrentValue;

            if (Kayn.ManaPercent < mana)
            {
                return;
            }
            var WPred = EntityManager.MinionsAndMonsters.GetLineFarmLocation(Monsters, Wk.Width, (int)W.Range);

            if (Jungle["Qj"].Cast <CheckBox>().CurrentValue&& Qk.IsLearned && Qk.IsReady())
            {
                foreach (var monster in Monsters.Where(x => !x.IsDead && x.IsValidTarget(Qk.Range) && x.Health > 100))
                {
                    Qk.Cast(monster.Position);
                }
            }

            if (Jungle["Wj"].Cast <CheckBox>().CurrentValue&& W.IsLearned && W.IsReady())
            {
                if (WPred.HitNumber >= Jungle["J"].Cast <Slider>().CurrentValue)
                {
                    W.Cast(WPred.CastPosition);
                }
            }
        }
Esempio n. 2
0
        internal static float GetRawDamage(Obj_AI_Base target)
        {
            float damage = 0;

            if (target != null)
            {
                if (Qk.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(target, SpellSlot.Q);
                    damage += Player.Instance.GetAutoAttackDamage(target);
                }
                if (W.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(target, SpellSlot.W);
                    damage += Player.Instance.GetAutoAttackDamage(target);
                }
                if (R.IsReady())
                {
                    damage += Player.Instance.GetSpellDamage(target, SpellSlot.R);
                    damage += Player.Instance.GetAutoAttackDamage(target);
                }
                if (ObjectManager.Player.CanAttack)
                {
                    damage += ObjectManager.Player.GetAutoAttackDamage(target);
                }
            }
            return(damage);
        }
Esempio n. 3
0
        private static void ByLane()
        {
            var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Kayn.Position, W.Range).ToArray();
            var mana    = Lane["mana"].Cast <Slider>().CurrentValue;

            if (Kayn.ManaPercent < mana)
            {
                return;
            }
            if (minions != null)
            {
                var wpred = EntityManager.MinionsAndMonsters.GetLineFarmLocation(minions, Qk.Width, (int)W.Range);
                if (Lane["Ql"].Cast <CheckBox>().CurrentValue&& Qk.IsLearned && Qk.IsReady())
                {
                    foreach (var minion in minions.Where(x => x.IsValid() && !x.IsDead && x.Health > 15))
                    {
                        if (Lane["Qmode"].Cast <ComboBox>().CurrentValue == 0 &&
                            Prediction.Position.PredictUnitPosition(minion, Qk.CastDelay).Distance(Kayn.Position) <= (Qk.Range - 50))
                        {
                            Qk.Cast(minion.Position);
                        }

                        else
                        {
                            Qk.Cast(minion.Position);
                        }
                    }
                }
                if (Lane["Wl"].Cast <CheckBox>().CurrentValue&& W.IsLearned && W.IsReady())
                {
                    if (wpred.HitNumber >= Lane["Min"].Cast <Slider>().CurrentValue)
                    {
                        W.Cast(wpred.CastPosition);
                    }
                    {
                        foreach (var minion in minions.Where(x => x.IsValid() && !x.IsDead && x.Health > 15))
                        {
                            if (Lane["Wmode"].Cast <ComboBox>().CurrentValue == 0 &&
                                Prediction.Position.PredictUnitPosition(minion, W.CastDelay).Distance(Kayn.Position) <= (W.Range + 700))
                            {
                                W.Cast(minion.Position);
                            }

                            else
                            {
                                W.Cast(minion.Position);
                            }
                        }
                    }
                }
            }
        }
Esempio n. 4
0
 private static void OnDraw(EventArgs args)
 {
     if (Draws["DQ"].Cast <CheckBox>().CurrentValue&& Qk.IsReady())
     {
         Qk.DrawRange(System.Drawing.Color.LightBlue);
     }
     if (Draws["DW"].Cast <CheckBox>().CurrentValue&& W.IsReady())
     {
         W.DrawRange(System.Drawing.Color.Crimson);
     }
     if (Draws["DE"].Cast <CheckBox>().CurrentValue&& Ek.IsReady())
     {
         Ek.DrawRange(System.Drawing.Color.Crimson);
     }
     if (Draws["DR"].Cast <CheckBox>().CurrentValue&& R.IsReady())
     {
         R.DrawRange(System.Drawing.Color.LawnGreen);
     }
 }