Пример #1
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians())
            {
                return;
            }

            var target = TargetSelector.GetTarget(Menu.Item("Range").GetValue <Slider>().Value, TargetSelector.DamageType.Physical);

            if (target == null ||
                !target.IsValidTarget(rSpell.Spell.Range) ||
                target.Distance(ObjectManager.Player) < ObjectManager.Player.AttackRange ||
                (Menu.Item("RKillable").GetValue <bool>() && damage.GetComboDamage(target) < target.Health) ||
                (Menu.Item("SafetyCheck").GetValue <bool>() && ObjectManager.Player.CountEnemiesInRange(1400) > ObjectManager.Player.CountAlliesInRange(1400)))
            {
                return;
            }

            var pred = rSpell.Spell.GetPrediction(target);

            if (pred.Hitchance >= HitChance.High)
            {
                rSpell.Spell.Cast(pred.CastPosition);
            }
        }
Пример #2
0
        public void OnDraw(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.IsValidTarget(1500) && ene.IsVisible))
            {
                heroHealthBarIndicator.Unit = enemy;

                heroHealthBarIndicator.DrawDmg(Damage.GetComboDamage(enemy), enemy.Health <= Damage.GetComboDamage(enemy) * 1.25
                    ? Color.LawnGreen
                    : Color.Yellow);
            }
        }
Пример #3
0
        private void AfterAttack(AttackableUnit unit, AttackableUnit attackableunit)
        {
            if (!CheckGuardians() ||
                Menu.Item("EMana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            var heroes = HeroManager.Enemies.Where(x => x.IsValidTarget(ObjectManager.Player.AttackRange));

            foreach (var target in heroes as AIHeroClient[] ?? heroes.ToArray())
            {
                if (target.Health < damage.GetComboDamage(target) && ObjectManager.Player.HealthPercent > target.HealthPercent)
                {
                    eSpell.Spell.Cast(target.Position);
                }
                else
                {
                    if (target.UnderTurret(true))
                    {
                        return;
                    }

                    switch (Menu.Item("EMode").GetValue <StringList>().SelectedIndex)
                    {
                    case 0:
                        eSpell.Spell.Cast(ObjectManager.Player.Position.Extend(Game.CursorPos, Menu.Item("EDistance").GetValue <Slider>().Value));
                        break;

                    case 1:
                        eSpell.Spell.Cast(dashSmart.Kite(target.Position.To2D(), Menu.Item("EDistance").GetValue <Slider>().Value).To3D());
                        break;

                    case 2:
                        eSpell.Spell.Cast(dashSmart.ToSafePosition(target, target.Position, Menu.Item("EDistance").GetValue <Slider>().Value));
                        break;
                    }
                }
            }
        }
Пример #4
0
        private void OnUpdate(EventArgs args)
        {
            if (Menu.Item("Combo.E.Mana").GetValue <Slider>().Value > ObjectManager.Player.ManaPercent)
            {
                return;
            }

            var target = TargetSelector.GetTarget(ObjectManager.Player.AttackRange + Menu.Item("Combo.E.Distance").GetValue <Slider>().Value, TargetSelector.DamageType.Physical);

            if (!Menu.Item("Combo.E.Execute").GetValue <bool>() || target == null || target.Health > damage.GetComboDamage(target) * 1.1)
            {
                return;
            }

            if (Menu.Item("Combo.E.Mode").GetValue <StringList>().SelectedIndex == 0)
            {
                eSpell.Spell.Cast(dashSmart.ToSafePosition(target, Menu.Item("Combo.E.Distance").GetValue <Slider>().Value));
            }
        }