Ejemplo n.º 1
0
        internal static bool CanQ(Obj_AI_Base target)
        {
            if (target.HasBuffOfType(BuffType.Invulnerability) &&
                target.HasBuffOfType(BuffType.SpellShield) &&
                target.HasBuff("kindredrnodeathbuff") &&                 //Kindred Ult
                target.HasBuff("BlitzcrankManaBarrierCD") &&                 //Blitz Passive
                target.HasBuff("ManaBarrier") &&                 //Blitz Passive
                target.HasBuff("FioraW") &&                 //Fiora W
                target.HasBuff("JudicatorIntervention") &&                 //Kayle R
                target.HasBuff("UndyingRage") &&                 //Trynd R
                target.HasBuff("BardRStasis") &&                 //Bard R
                target.HasBuff("ChronoShift")                    //Zilean R
                )
            {
                return(false);
            }

            if (SpellManager.R.IsReady() && Player.Mana - SpellManager.Q.ManaCost < SpellManager.R.ManaCost)
            {
                return(false);
            }

            if (SpellManager.W.IsReady() && Damage.WDamage(target) >= target.Health &&
                target.Distance(Player.ServerPosition) <= 200)
            {
                return(false);
            }

            if (SpellManager.W.IsReady() && Player.HasBuff("DariusNoxonTactictsONH") && target.Distance(Player.ServerPosition) <= 225)
            {
                return(false);
            }

            if (Player.Distance(target.ServerPosition) > SpellManager.Q.Range)
            {
                return(false);
            }

            if (SpellManager.R.IsReady() && SpellManager.R.IsInRange(target) &&
                Damage.RDamage(target, Damage.PassiveCount(target)) - Damage.PassiveDmg(target, 1) >= target.Health)
            {
                return(false);
            }

            if (Player.GetAutoAttackDamage(target) * 2 + Damage.PassiveDmg(target, Damage.PassiveCount(target)) >= target.Health &&
                Player.Distance(target.ServerPosition) <= 180)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 2
0
        public static void CastE()
        {
            var target = TargetSelector.GetTarget(SpellManager.E.Range, DamageType.Physical);

            if (target.IsValidTarget())
            {
                var eprediction = SpellManager.E.GetPrediction(target);
                if (MenuManager.getCheckBoxItem(MenuManager.comboMenu, "useE") && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    if (target.Distance(EloBuddy.Player.Instance.ServerPosition) > 250)
                    {
                        if (SpellManager.E.IsReady() && target != null)
                        {
                            if (eprediction.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium)
                            {
                                if (Damage.RDamage(target, Damage.PassiveCount(target)) >= target.Health + Damage.PassiveDmg(target, 1))
                                {
                                    SpellManager.E.Cast(eprediction.CastPosition);
                                }

                                if (SpellManager.Q.IsReady() || SpellManager.W.IsReady())
                                {
                                    SpellManager.E.Cast(eprediction.CastPosition);
                                }

                                if (Player.GetAutoAttackDamage(target) + Damage.PassiveDmg(target, 3) * 3 >= target.Health)
                                {
                                    SpellManager.E.Cast(eprediction.CastPosition);
                                }
                            }
                        }
                    }
                    if (SpellManager.E.IsReady() && MenuManager.getCheckBoxItem(MenuManager.comboMenu, "Eon" + target.ChampionName) && (EloBuddy.Player.Instance.IsUnderTurret() || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)))
                    {
                        if (!EloBuddy.Player.Instance.IsInAutoAttackRange(target))
                        {
                            if (eprediction.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium)
                            {
                                if (SpellManager.E.IsReady() && target != null)
                                {
                                    SpellManager.E.Cast(eprediction.CastPosition);
                                }
                            }
                        }
                    }
                }
            }
        }