Example #1
0
        private static void Clear()
        {
            if (ObjectManager.Player.ManaPercent < Helper.Slider("clear.mana"))
            {
                return;
            }
            var minion = MinionManager.GetMinions(ObjectManager.Player.Position, Spells.Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

            if (minion.Count == 0)
            {
                return;
            }

            if (Spells.Q.IsReady() && Helper.Enabled("q.clear"))
            {
                if (Spells.Q.CanCast(minion[0]))
                {
                    if (minion[0].Health < Calculators.Q(minion[0]) && minion[1].Health < Calculators.Q(minion[1]) ||
                        minion[0].Health <Calculators.Q(minion[0]) && minion[1].Health> Calculators.Q(minion[1]))
                    {
                        Spells.Q.Cast(Spells.Q.GetPrediction(minion[0]).CastPosition);
                    }
                    if (minion[1].Health <Calculators.Q(minion[1]) && minion[0].Health> Calculators.Q(minion[0]))
                    {
                        Spells.Q.Cast(Spells.Q.GetPrediction(minion[1]).CastPosition);
                    }
                }
            }
            if (Spells.E.IsReady() && Helper.Enabled("e.clear"))
            {
                if (Spells.E.CanCast(minion[0]) && Spells.E.GetCircularFarmLocation(minion).MinionsHit >= Helper.Slider("e.minion.hit.count"))
                {
                    Spells.E.Cast(Spells.E.GetCircularFarmLocation(minion).Position);
                }
                if (Helper.LuxE != null && Helper.EInsCheck() == 2)
                {
                    Spells.E.Cast();
                }
            }
        }
Example #2
0
 public static void KillStealWithQ(AIHeroClient enemy)
 {
     if (Spells.Q.GetPrediction(enemy).Hitchance >= Helper.HikiChance("q.hit.chance") && Calculators.Q(enemy) > enemy.Health)
     {
         Spells.Q.Cast(enemy);
     }
 }