示例#1
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null || !CheckGuardians())
            {
                return;
            }

            foreach (var m in Minion)
            {
                if (q3Spell.Active)
                {
                    var pred = q3Spell.Spell.GetLineFarmLocation(Minion);

                    if (ObjectManager.Player.IsDashing() && (m.Health < qSpell.GetDamage(m) || !qSpell.EqRange(dashPos.DashEndPosition(m, 475))))
                    {
                        return;
                    }

                    if (pred.MinionsHit >= Menu.Item("LQ3").GetValue <Slider>().Value)
                    {
                        q3Spell.Spell.Cast(pred.Position);
                    }
                }
                else
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
示例#2
0
        public float GetComboDamage(AIHeroClient target)
        {
            if (target == null)
            {
                return(0);
            }

            float comboDmg = 0;

            if (qSpell.Spell.IsReady())
            {
                comboDmg += qSpell.GetDamage(target);
            }

            if (eSpell.Spell.IsReady())
            {
                comboDmg += eSpell.Spell.GetDamage(target);
            }

            if (rSpell.Spell.IsReady())
            {
                comboDmg += rSpell.Spell.GetDamage(target);
            }

            if (!ObjectManager.Player.Spellbook.IsAutoAttacking)
            {
                comboDmg += (float)ObjectManager.Player.GetAutoAttackDamage(target);
            }

            return(comboDmg);
        }
示例#3
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null || !CheckGuardians())
            {
                return;
            }

            foreach (var m in Minion)
            {
                if (q3Spell.Active)
                {
                    var pred = q3Spell.Spell.GetPrediction(m, true);

                    if (ObjectManager.Player.IsDashing() && (m.Health < qSpell.GetDamage(m) || dashPos.DashEndPosition(m, 475).Distance(pred.UnitPosition) > ObjectManager.Player.AttackRange))
                    {
                        return;
                    }

                    if (Menu.Item("LQ3").GetValue <Slider>().Value < pred.AoeTargetsHitCount)
                    {
                        return;
                    }

                    switch (Menu.Item("LHitchance").GetValue <StringList>().SelectedIndex)
                    {
                    case 0:
                        if (pred.Hitchance >= HitChance.Medium)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;

                    case 1:
                        if (pred.Hitchance >= HitChance.High)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;

                    case 2:
                        if (pred.Hitchance >= HitChance.VeryHigh)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;
                    }
                }
                else
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
示例#4
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || Target.Health > qSpell.GetDamage(Target) || !CheckGuardians())
            {
                return;
            }

            if (q3Spell.Active)
            {
                var q3Pred = q3Spell.Spell.GetPrediction(Target);

                if (q3Pred.Hitchance >= HitChance.High)
                {
                    q3Spell.Spell.Cast(q3Pred.CastPosition);
                }
            }
            else
            {
                qSpell.Spell.Cast(Target);
            }
        }