Example #1
0
 private static void AutoR()
 {
     if (_player.HasBuff("Recall") || _player.InFountain())
     {
         return;
     }
     if (getCheckBoxItem(utilityMenu, "onmeR") &&
         (_player.Health / _player.MaxHealth) * 100 <= getSliderItem(utilityMenu, "ultiSelfHP") &&
         _r.IsReady() && Utility.LSCountEnemiesInRange(650) > 0)
     {
         _r.Cast(_player);
     }
 }
Example #2
0
        private static void Escape()
        {
            var target = TargetSelector.GetTarget(_q.Range, DamageType.Magical);

            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            if (_player.Spellbook.CanUseSpell(SpellSlot.W) == SpellState.Ready && _player.IsMe)
            {
                if (_w.IsReady() && Utility.LSCountEnemiesInRange(1200) > 0)
                {
                    _player.Spellbook.CastSpell(SpellSlot.W, _player);
                }
            }

            if (target.LSIsValidTarget(_q.Range) && _q.IsReady())
            {
                _q.Cast(target);
            }
        }
Example #3
0
 private static void AllyW()
 {
     foreach (var hero in ObjectManager.Get <AIHeroClient>().Where(hero => hero.IsAlly && !hero.IsMe))
     {
         if (_player.HasBuff("Recall") || hero.HasBuff("Recall") || hero.InFountain())
         {
             return;
         }
         if (!hero.LSIsValidTarget(_w.Range))
         {
             return;
         }
         if (getCheckBoxItem(utilityMenu, "allyW") &&
             (hero.Health / hero.MaxHealth) * 100 <= getSliderItem(utilityMenu, "allyhealper") &&
             _w.IsReady() && Utility.LSCountEnemiesInRange(1200) > 0 &&
             hero.LSDistance(_player.ServerPosition) <= _w.Range)
         {
             if (getCheckBoxItem(utilityMenu, "usewally" + hero.BaseSkinName) == true)
             {
                 _w.Cast(hero);
             }
         }
     }
 }