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

            var target = TargetSelector.GetTarget(q2Spell.Spell.Range, TargetSelector.DamageType.Physical);

            if (target == null ||
                ObjectManager.Player.IsDashing() ||
                !Menu.Item("ExtendedQ").GetValue <bool>() ||
                target.Distance(ObjectManager.Player) < qSpell.Spell.Range)
            {
                return;
            }

            var minions = MinionManager.GetMinions(qSpell.Spell.Range);

            foreach (var m in minions)
            {
                if (q2Spell.QMinionExtend(m))
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
示例#2
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians())
            {
                return;
            }

            var target = TargetSelector.GetTarget(q2Spell.Spell.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (!Menu.Item("Harass.Q.Extended").GetValue <bool>())
            {
                return;
            }

            var minions = MinionManager.GetMinions(q2Spell.Spell.Range);

            foreach (var m in minions)
            {
                if (q2Spell.QMinionExtend(m))
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
示例#3
0
        public void OnDraw(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Menu.Item("Extended").GetValue <bool>())
            {
                Render.Circle.DrawCircle(ObjectManager.Player.Position, q2Spell.Spell.Range, q2Spell.Spell.IsReady()
                ? Color.DodgerBlue
                : Color.DarkSlateGray,
                                         4, true);
            }

            if (!Menu.Item("Prediction").GetValue <bool>())
            {
                return;
            }

            var minions = MinionManager.GetMinions(qSpell.Spell.Range);

            foreach (var m in minions)
            {
                if (q2Spell.QMinionExtend(m))
                {
                    Render.Circle.DrawCircle(m.Position, 70, Color.DodgerBlue, 4, true);
                }
            }
        }
示例#4
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || Target.Health > qSpell.GetDamage(Target) || !CheckGuardians())
            {
                return;
            }

            if (Target.Distance(ObjectManager.Player) <= qSpell.Spell.Range)
            {
                qSpell.Spell.CastOnUnit(Target);
            }
            else if (Target.Distance(ObjectManager.Player) > ObjectManager.Player.AttackRange && Menu.Item("Extend").GetValue <bool>())
            {
                var minions = MinionManager.GetMinions(qSpell.Spell.Range);

                foreach (var m in minions)
                {
                    if (q2Spell.QMinionExtend(m))
                    {
                        qSpell.Spell.Cast(m);
                    }
                }
            }
        }