Пример #1
0
        private void Hawkshot()
        {
            var target = TargetSelector.GetTarget(Variable.Player.AttackRange, TargetSelector.DamageType.True);

            if (target == null || !eLogic.ComboE(target))
            {
                return;
            }

            foreach (var position in HeroManager.Enemies.Where(x => !x.IsDead && x.Distance(Variable.Player) < Menu.Item("EDistance").GetValue <Slider>().Value))
            {
                var path = position.GetWaypoints().FirstOrDefault().To3D();

                if (!NavMesh.IsWallOfGrass(path, 50))
                {
                    return;
                }

                Variable.Spells[SpellSlot.E].Cast(path);
            }
        }