예제 #1
0
        private void Clear()
        {
            var mob = Jungle.GetNearest(player.Position);

            if (mob != null && config.Item("usewLCSteal").GetValue <bool>() && CanW && W.CanCast(mob) &&
                player.CalcDamage(mob, Damage.DamageType.Physical, Wdmg(mob)) > mob.Health)
            {
                W.Cast(mob);
            }
            if (mob != null && config.Item("usewbsmite").GetValue <bool>() && CanW && W.CanCast(mob) &&
                Jungle.SmiteReady(config.Item("useSmite").GetValue <KeyBind>().Active) &&
                player.CalcDamage(mob, Damage.DamageType.Physical, Wdmg(mob)) + Jungle.smiteDamage(mob) > mob.Health)
            {
                W.Cast(mob);
            }
            float perc = config.Item("minmana").GetValue <Slider>().Value / 100f;

            if (player.Mana < player.MaxMana * perc)
            {
                return;
            }
            var minions = MinionManager.GetMinions(W.Range, MinionTypes.All, MinionTeam.NotAlly);

            if (config.Item("useeLC").GetValue <bool>() && E.IsReady() &&
                config.Item("ehitLC").GetValue <Slider>().Value <= minions.Count)
            {
                E.Cast();
            }
        }
예제 #2
0
 private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
     {
         var mob = Jungle.GetNearest(player.Position);
         if (mob != null && config.Item("useqLCSteal").GetValue <bool>() && Q.IsReady() &&
             Q.GetDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
         if (mob != null && config.Item("useqbsmite").GetValue <bool>() && Q.IsReady() &&
             Jungle.SmiteReady(config.Item("useSmite").GetValue <KeyBind>().Active) &&
             Q.GetDamage(mob) + Jungle.smiteDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
     }
     if (args.Unit.IsMe && Q.IsReady() && config.Item("useq").GetValue <bool>() && args.Target is Obj_AI_Hero &&
         Q.GetDamage((Obj_AI_Base)args.Target) > args.Target.Health)
     {
         Q.Cast(config.Item("packets").GetValue <bool>());
     }
 }