Exemplo n.º 1
0
        static void KillSteal()
        {
            if (Human())
            {
                if (Option_Item("KillSteal Human Q") && Q.IsReady())
                {
                    var Qtarget = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical, true);
                    if (Qtarget != null && Qtarget.Health <= Q.GetDamage(Qtarget))
                    {
                        Q.CastOnUnit(Qtarget, true);
                    }
                }

                if (Option_Item("KillSteal Human W") && W.IsReady())
                {
                    var Wtarget    = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical, true);
                    var prediction = W.GetPrediction(Wtarget);
                    if (Wtarget != null && Wtarget.Health <= W.GetDamage(Wtarget) && prediction.CollisionObjects.Count == 0)
                    {
                        W.Cast(Wtarget.ServerPosition, true);
                    }
                }
            }
            if (Spider())
            {
                if (Option_Item("KillSteal Spider Q") && Q2.IsReady())
                {
                    var Q2target = TargetSelector.GetTarget(Q2.Range, TargetSelector.DamageType.Magical, true);
                    if (Q2target != null && Q2target.Health <= Q2.GetDamage(Q2target))
                    {
                        Q2.CastOnUnit(Q2target, true);
                    }
                }
            }
        }
Exemplo n.º 2
0
        static float GetComboDamage(AIHeroClient Enemy)
        {
            float damage = 0;

            if (Q.IsReady())
            {
                damage += Q.GetDamage(Enemy);
            }
            if (W.IsReady())
            {
                damage += W.GetDamage(Enemy);
            }
            if (Q2.IsReady())
            {
                damage += Q2.GetDamage(Enemy);
            }
            if (W2.IsReady())
            {
                damage += W2.GetDamage(Enemy);
            }
            if (!Player.Spellbook.IsAutoAttacking)
            {
                damage += (float)ObjectManager.Player.GetAutoAttackDamage(Enemy, true);
            }


            return(damage);
        }
Exemplo n.º 3
0
        /*private static float CalculateCd(float time)
         * {
         *  return time + time*Player.PercentCooldownMod;
         * }*/

        private static float GetComboDamage(Obj_AI_Hero Enemy)
        {
            float damage = 0;

            if (Q.IsReady())
            {
                damage += Q.GetDamage(Enemy);
            }
            if (W.IsReady())
            {
                damage += W.GetDamage(Enemy);
            }
            if (Q2.IsReady())
            {
                damage += Q2.GetDamage(Enemy);
            }
            if (W2.IsReady())
            {
                damage += W2.GetDamage(Enemy);
            }
            if (!Player.IsWindingUp)
            {
                damage += (float)ObjectManager.Player.GetAutoAttackDamage(Enemy, true);
            }


            return(damage);
        }
Exemplo n.º 4
0
        private void LogicQ2()
        {
            var t = TargetSelector.GetTarget(Q2.Range, TargetSelector.DamageType.Physical);

            if (t.IsValidTarget())
            {
                if (Q2.GetDamage(t) > t.Health)
                {
                    Q2.Cast(t);
                }
                else if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    Q2.Cast(t);
                }
            }
        }
Exemplo n.º 5
0
        static void CastR()
        {
            var Target  = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical, true);
            var Target2 = TargetSelector.GetTarget(Q2.Range, TargetSelector.DamageType.Magical, true);

            if (Target != null && R.IsReady())
            {
                if (Human())
                {
                    if (!Q.IsReady() && !W.IsReady() && !E.IsReady())
                    {
                        if (_spideQcd == 0 && _spideWcd <= 1.8f)
                        {
                            if ((Target.Health <= Q.GetDamage(Target) && _humaQcd <= 1.5f) && (_humaQcd <= 1.2f || _humaWcd <= 2))
                            {
                                return;
                            }
                            else
                            {
                                R.Cast(true);
                            }
                        }
                    }
                }

                if (Spider())
                {
                    if (!Q2.IsReady() && !W2.IsReady() && !Player.HasBuff("EliseSpiderW"))
                    {
                        if (_humaQcd == 0 || (_humaWcd <= 1.5f && _humaEcd <= 0.8f))
                        {
                            if ((_spideQcd <= 1.0f && Target2.Health <= Q2.GetDamage(Target2)) || (_spideQcd <= 1.4f || _spideWcd <= 1.9f))
                            {
                                return;
                            }
                            else
                            {
                                R.Cast();
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 6
0
        private static void CastR()
        {
            var Target  = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            var Target2 = TargetSelector.GetTarget(Q2.Range, TargetSelector.DamageType.Magical);

            if ((Target == null) || !R.IsReady())
            {
                return;
            }
            if (Human())
            {
                if (!Q.IsReady() && !W.IsReady() && !E.IsReady())
                {
                    if ((_spideQcd <= 0f) && (_spideWcd <= 1.8f))
                    {
                        if ((Target.Health <= Q.GetDamage(Target)) && (_humaQcd <= 1.5f) &&
                            ((_humaQcd <= 1.2f) || (_humaWcd <= 2)))
                        {
                            return;
                        }
                        else
                        {
                            R.Cast();
                        }
                    }
                }
            }

            if (Spider())
            {
                if (!Q2.IsReady() && !W2.IsReady() && !Player.HasBuff("EliseSpiderW"))
                {
                    if ((_humaQcd <= 0f) || ((_humaWcd <= 1.5f) && (_humaEcd <= 0.8f)))
                    {
                        if ((!(Target2.Health <= Q2.GetDamage(Target2)) || !(_spideQcd <= 1.0f)) && !(_spideQcd <= 1.4f) &&
                            !(_spideWcd <= 1.9f))
                        {
                            R.Cast();
                        }
                    }
                }
            }
        }
Exemplo n.º 7
0
        private static void ComboMelee()
        {
            var targetQ = Q.GetTarget();
            var targetE = E.GetTarget();
            var targetW = W.GetTarget();

            if (mainMenu["Combo"].GetValue <MenuBool>("Quse").Enabled&& Q.IsReady() && targetQ.IsValidTarget() && Q.IsInRange(targetQ))
            {
                Q.Cast(targetQ);
            }
            if (mainMenu["Combo"].GetValue <MenuBool>("Wuse").Enabled&& W.IsReady() && targetW.IsValidTarget() && W.IsInRange(targetW))
            {
                W.Cast();
            }

            if (mainMenu["Combo"].GetValue <MenuBool>("Euse").Enabled&& E.IsReady() && targetE.IsValidTarget() && targetE.Health < (Q2.GetDamage(targetE) + GameObjects.Player.GetAutoAttackDamage(targetE) * 4))
            {
                E.Cast(targetE);
                R.Cast();
            }
        }