Ejemplo n.º 1
0
        public static void CastR()
        {
            var target = TargetSelector.GetTarget(SpellManager.R.Range, DamageType.True);

            if (target.IsValidTarget())
            {
                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;
                }

                if (SpellManager.R.IsReady() && MenuManager.getKeyBindItem(MenuManager.comboMenu, "useRManual"))
                {
                    if (target.IsValidTarget())
                    {
                        SpellManager.R.Cast(target);
                    }
                }

                if (MenuManager.getCheckBoxItem(MenuManager.comboMenu, "useR") && SpellManager.R.IsReady() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    if (target.IsValidTarget(SpellManager.R.Range) && !target.IsZombie)
                    {
                        int PassiveCounter = target.GetBuffCount("dariushemo") <= 0 ? 0 : target.GetBuffCount("dariushemo");
                        if (Damage.RDamage(target, PassiveCounter) >= target.Health + Damage.PassiveDmg(target, 1))
                        {
                            SpellManager.R.Cast(target);
                        }
                    }
                }

                if (MenuManager.getCheckBoxItem(MenuManager.comboMenu, "autoRbuff"))
                {
                    var buffTime = Damage.GetPassiveTime(Player, "dariusexecutemulticast");
                    if ((buffTime < 2 || (Player.HealthPercent < 10 && MenuManager.getCheckBoxItem(MenuManager.comboMenu, "autoRdeath"))) && buffTime > 0)
                    {
                        SpellManager.R.Cast(target);
                    }
                }
                foreach (var hero in ObjectManager.Get <AIHeroClient>().Where(hero => hero.IsValidTarget(SpellManager.R.Range)))
                {
                    if (Player.GetSpellDamage(target, SpellSlot.R) + MenuManager.getSliderItem(MenuManager.comboMenu, "adjustDmg") > hero.Health)
                    {
                        SpellManager.R.Cast(target);
                    }

                    else if (Player.GetSpellDamage(target, SpellSlot.R) + MenuManager.getSliderItem(MenuManager.comboMenu, "adjustDmg") < hero.Health)
                    {
                        foreach (var buff in hero.Buffs.Where(buff => buff.Name == "dariushemo"))
                        {
                            if (Player.GetSpellDamage(target, SpellSlot.R) * (1 + buff.Count / 5) + MenuManager.getSliderItem(MenuManager.comboMenu, "adjustDmg") > target.Health)
                            {
                                SpellManager.R.Cast(target);
                            }
                        }
                    }
                }
            }
        }
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);
                                }
                            }
                        }
                    }
                }
            }
        }