Exemplo n.º 1
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Target == null ||
                Menu.Item("Lux.Combo.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            if (spell.IsActive && spell.InRange(Target))
            {
                if (ObjectManager.Player.Distance(Target) < ObjectManager.Player.AttackRange &&
                    Target.HasBuff("luxilluminatingfraulein") &&
                    Menu.Item("Lux.Combo.E.Proc").GetValue <bool>())
                {
                    return;
                }

                spell.Spell.Cast();
            }
            else
            {
                switch (Menu.Item("Lux.Combo.E.Prediction").GetValue <StringList>().SelectedIndex)
                {
                case 0:
                    switch (Menu.Item("Lux.Combo.E.Hitchance").GetValue <StringList>().SelectedIndex)
                    {
                    case 0:
                        if (spell.Prediction(Target).Hitchance >= SebbyLib.Movement.HitChance.High)
                        {
                            spell.Spell.Cast(spell.Prediction(Target).CastPosition);
                        }
                        break;

                    case 1:
                        if (spell.Prediction(Target).Hitchance >= SebbyLib.Movement.HitChance.VeryHigh)
                        {
                            spell.Spell.Cast(spell.Prediction(Target).CastPosition);
                        }
                        break;
                    }
                    break;

                case 1:
                    spell.Spell.Cast(Target);
                    break;
                }
            }
        }
Exemplo n.º 2
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Mob == null ||
                Menu.Item("Lux.Jungle.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            if (spell.IsActive && spell.InRange(Mob))
            {
                spell.Spell.Cast();
            }
            else
            {
                spell.Spell.Cast(spell.Prediction(Mob).CastPosition);
            }
        }
Exemplo n.º 3
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                Target == null ||
                Target.Distance(ObjectManager.Player) > 1100 ||
                (Menu.Item("Lux.Combo.R.Safe").GetValue <bool>() && Target.Distance(ObjectManager.Player) < 125) ||
                Menu.Item("Lux.Combo.R.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            spell.Spell.CastIfWillHit(Target, Menu.Item("Lux.Combo.R.Hit").GetValue <Slider>().Value);


            if (Menu.Item("Lux.Combo.R.E").GetValue <bool>() && eSpell.IsActive && eSpell.InRange(Target))
            {
                eSpell.Spell.Cast();
            }

            if (HealthPrediction.GetHealthPrediction(Target, (int)spell.Spell.Delay + Game.Ping / 2) < spell.GetDamage(Target) && Target.Distance(ObjectManager.Player) <= 1000)
            {
                Cast();
            }
        }