Exemple #1
0
 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (W.IsReady() && W.WillKill(target) && target.IsKillable(W.Range) && AutoMenu.CheckBoxValue("Wunk"))
     {
         W.Cast(target);
     }
 }
Exemple #2
0
 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target.IsKillable(Q.Range) && Q.IsReady() && Q.WillKill(target) && AutoMenu.CheckBoxValue("Qunk") && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         Q.Cast(target);
     }
 }
Exemple #3
0
 protected override void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target == null || target.IsInvulnerable || !target.IsValidTarget())
     {
         return;
     }
     if (MenuValue.LastHit.PreventCombo && Orbwalker.ActiveModes.Combo.IsOrb())
     {
         return;
     }
     if (MenuValue.LastHit.OnlyFarmMode && !Variables.IsFarm)
     {
         return;
     }
     if (player.ManaPercent < MenuValue.LastHit.ManaLimit)
     {
         return;
     }
     if (IsKillable(target, false) && MenuValue.LastHit.UseE && E.IsReady() && E.IsInRange(target))
     {
         var predHealth = E.GetHealthPrediction(target);
         if (predHealth > 0)
         {
             E.Cast();
         }
     }
 }
Exemple #4
0
        public static void On_Unkillable_Minion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
        {
            if (unit == null || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                return;
            }
            switch (Extension.IsTiny)
            {
            case true:
            {
                if (unit.Health <= Damage.QDamage(unit) && Spells.QTiny.IsReady() && Config.LasthitMenu.Checked("Q"))
                {
                    Spells.QTiny.Cast(unit);
                }
                if (unit.Health <= Damage.EDamage(unit) && Spells.ETiny.IsReady() && Config.LasthitMenu.Checked("E"))
                {
                    Spells.ETiny.Cast(unit);
                }
            }
            break;

            case false:
            {
                if (unit.Health <= Damage.QDamage(unit) && Spells.QTiny.IsReady() && Config.LasthitMenu.Checked("Q"))
                {
                    Spells.QMega.Cast(unit);
                }
                if (unit.Health <= Damage.EDamage(unit) && Spells.ETiny.IsReady() && Config.LasthitMenu.Checked("E"))
                {
                    Spells.EMega.Cast(unit);
                }
            }
            break;
            }
        }
Exemple #5
0
 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target != null && AutoMenu.CheckBoxValue("Qunk") && target.IsKillable(Q.Range) && Q.WillKill(target) && Q.IsReady())
     {
         Q.Cast(target);
     }
 }
Exemple #6
0
 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target != null && target.IsKillable(E.Range) && E.IsReady() && target.EKill() && AutoMenu.CheckBoxValue("AutoEUnKillable"))
     {
         E.Cast();
     }
 }
 //Lasthit
 public static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (Player.Instance.ManaPercent < Config.LasthitMenu["LhManager"].Cast <Slider>().CurrentValue || Player.Instance.IsRecalling())
     {
         return;
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
     {
         if (Config.LasthitMenu["useQLh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
         {
             if (args.RemainingHealth < Damages.QDamage(target) && target.IsValidTarget(Spells.Q.Range))
             {
                 Spells.Q.Cast(target);
             }
         }
     }
     if (Config.LasthitMenu["useWLh"].Cast <CheckBox>().CurrentValue)
     {
         if (args.RemainingHealth < Player.Instance.GetAutoAttackDamage(target) && Player.Instance.IsInAutoAttackRange(target))
         {
             Spells.W.Cast();
             Player.IssueOrder(GameObjectOrder.AttackTo, target);
         }
     }
 }
Exemple #8
0
 protected override void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target == null || target.IsInvulnerable || !target.IsValidTarget())
     {
         return;
     }
     if (MenuValue.LastHit.PreventCombo && Orbwalker.ActiveModes.Combo.IsOrb())
     {
         return;
     }
     if (MenuValue.LastHit.OnlyFarmMode && !Variables.IsFarm)
     {
         return;
     }
     if (player.ManaPercent < MenuValue.LastHit.ManaLimit)
     {
         return;
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.Q) && MenuValue.LastHit.UseQ && Q.IsReady() && Q.IsInRange(target))
     {
         var predHealth = Q.GetHealthPrediction(target);
         if (predHealth > 0)
         {
             Q.Cast(target);
         }
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.E) && MenuValue.LastHit.UseE && E.IsReady() && E.IsInRange(target))
     {
         var predHealth = E.GetHealthPrediction(target);
         if (predHealth > 0)
         {
             E.Cast(target);
         }
     }
 }
 public static void On_Unkillable_Minion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
 {
     if (Config.LasthitMenu.GetValue("lh") > Player.Instance.ManaPercent || unit == null ||
         Orbwalker.ActiveModes.Combo.IsActive())
     {
         return;
     }
     if (args.RemainingHealth <= Damages.QDamage(unit) && Spells.Q.IsReady() && Config.LasthitMenu.Checked("Q"))
     {
         if (Spells.Q.IsInRange(unit))
         {
             Spells.Q.Cast(unit);
         }
         else if (Spells.Q2.IsInRange(unit))
         {
             var pred = Spells.Q2.GetPrediction(unit);
             pred.QExtend();
         }
     }
     if (args.RemainingHealth <= Damages.WDamage(unit) && Spells.W.IsReady() && Config.LasthitMenu.Checked("W"))
     {
         Spells.W.Cast(unit);
     }
     if (args.RemainingHealth <= Damages.EDamage(unit) && Spells.E.IsReady() && Config.LasthitMenu.Checked("E"))
     {
         var Position = _E_.Intersection_Of_2Circle(Player.Instance.Position.To2D(), Spells.E.Range, unit.Position.To2D(), Player.Instance.GetAutoAttackRange(unit));
         if (Position.Count() > 0)
         {
             Spells.E.Cast(Position.OrderBy(x => x.Distance(Game.CursorPos)).FirstOrDefault().To3DWorld());
         }
     }
 }
Exemple #10
0
        /// <summary>
        /// Called when a Minion is unkillable
        /// </summary>
        /// <param name="target"></param>
        /// <param name="args"></param>
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            var useQC = NidaleeMenu.LastHitMenu["useQC"].Cast <CheckBox>().CurrentValue;
            var useEC = NidaleeMenu.LastHitMenu["useEC"].Cast <CheckBox>().CurrentValue;
            var useR  = NidaleeMenu.LastHitMenu["useR"].Cast <CheckBox>().CurrentValue;

            if (target == null)
            {
                return;
            }

            if (Essentials.CatForm())
            {
                if (useQC && QCat.IsReady() && target.IsValidTarget(QCat.Range) &&
                    Essentials.DamageLibrary.CalculateDamage(target, true, false, false, false) >= args.RemainingHealth)
                {
                    QCat.Cast(target);
                }

                if (useEC && ECat.IsReady() && target.IsValidTarget(ECat.Range) &&
                    Essentials.DamageLibrary.CalculateDamage(target, false, false, true, false) >= args.RemainingHealth)
                {
                    ECat.Cast(target.ServerPosition);
                }

                if (useR && R.IsReady() && !Player.Instance.IsInAutoAttackRange(target) &&
                    Player.Instance.Distance(target) <= Essentials.HumanRange &&
                    args.RemainingHealth <= Player.Instance.GetAutoAttackDamage(target))
                {
                    R.Cast();
                    Orbwalker.ForcedTarget = target;
                }
            }
        }
Exemple #11
0
 internal static void Unkillable(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) && Config.QSettings.unkillableMinion && SpellManager.Q.IsReady())
     {
         SpellManager.CastQ(false);
     }
 }
Exemple #12
0
 private void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (Settings.SecureMinionKillsE && E.IsReady() && target.IsRendKillable())
     {
         // Cast since it's killable with E
         SpellManager.E.Cast();
     }
 }
 private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {/*
   * var minion = target as Obj_AI_Minion;
   * if (minion != null && minion.IsValidTarget(SpellManager.Q.Range) && Settings.UseQun && Player.Instance.ManaPercent >= Settings.ManaLast)
   * {
   *     SpellManager.Q.Cast(minion);
   * }*/
 }
Exemple #14
0
 private static void Event_OnUnkillableMinion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
 {
     if (!Minionunkillable || !ArgsE.IsReady() || !unit.HasBuff("TwitchDeadlyVenom") || CountEnemiesInRange(ArgsE.Range) > 0)
     {
         return;
     }
     ArgsE.Cast();
 }
Exemple #15
0
 public static void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target.Health <= Player.Instance.GetSpellDamage(target, SpellSlot.E) && Spells.E.IsReady() &&
         target.IsValidTarget(Spells.E.Range) && Config.IsChecked(Config.Misc, "eOnMinz"))
     {
         Spells.E.Cast(target);
     }
 }
Exemple #16
0
        private void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (Game.CursorPos.GetTumbleEndPos().IsPositionSafe())
            {
                Q.Cast(Game.CursorPos.ExtendPlayerVector(250));
            }

            Orbwalker.OnUnkillableMinion -= Orbwalker_OnUnkillableMinion;
        }
Exemple #17
0
        public static void LastHit(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
        {
            if (Player.Instance.ManaPercent <= Menus.LastMana.CurrentValue || unit == null)
            {
                return;
            }

            var e = Spells.E.IsReady() ? Player.Instance.CalculateDamageOnUnit(unit, DamageType.Magical,
                                                                               new[] { 0f, 10f, 14.375f, 18.75f, 23.125f, 27.5f }[Spells.E.Level]
                                                                               +0.0875f * Player.Instance.TotalMagicalDamage) : 0f;

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                if (Menus.Clear["Qlh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
                    unit.Health <= Spells.Q.GetSpellDamage(unit))
                {
                    Spells.Q.Cast(unit);
                }

                if (Menus.Clear["Elh"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady() &&
                    unit.Health <= e)
                {
                    Spells.E.Cast(unit);
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                if (Menus.Clear["Qlc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
                    unit.Health <= Spells.Q.GetSpellDamage(unit))
                {
                    Spells.Q.Cast(unit);
                }

                if (Menus.Clear["Elc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady() &&
                    unit.Health <= e)
                {
                    Spells.E.Cast(unit);
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                if (Menus.Clear["Qjc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
                    unit.Health <= Spells.Q.GetSpellDamage(unit))
                {
                    Spells.Q.Cast(unit);
                }

                if (Menus.Clear["Ejc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady() &&
                    unit.Health <= e)
                {
                    Spells.E.Cast(unit);
                }
            }
        }
Exemple #18
0
 public static void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (ConfigList.Farm.LastHitQ && SpellManager.Q.IsReady() && !Damage.HasRBuff() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear | Orbwalker.ActiveModes.LastHit))
     {
         if (target.IsInRange(Player.Instance, SpellManager.Q.Range))
         {
             SpellManager.Q.Cast(target);
         }
     }
 }
Exemple #19
0
 private void OnMinionUnkillable(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (!Program.getMiscMenuCB("eFarmAssist")) return;
     if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) &&
         target.Position.LSDistance(ObjectManager.Player.Position) < 650 &&
         (_recentFarmTarget == null || target.NetworkId != _recentFarmTarget.NetworkId))
     {
         Cast(target);
     }
 }
Exemple #20
0
 /// <summary>
 /// Calcalute Unkillable Minion
 /// </summary>
 /// <param name="target">Wut minion</param>
 /// <param name="args">EventArgs</param>
 void IHeroBase.OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     try
     {
         OnUnkillableMinion(target, args);
     }
     catch (Exception e)
     {
         Debug.Print(e.ToString(), Console_Message.Error);
     }
 }
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            var dmg   = Prediction.Health.GetPrediction(target, Spells.Q.CastDelay) - 30 <= target.Health;
            var count = EntityManager.MinionsAndMonsters.GetLaneMinions().Count(m => m.IsEnemy && m.IsInRange(target, 600) && dmg);

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) && Helpers.GetCheckBoxValue(Helpers.MenuTypes.LastHit, "qLast") && Spells.Q.IsReady() && dmg &&
                target.Health <= Player.Instance.GetAutoAttackDamage(target) && count >= 2)
            {
                Spells.Q.Cast(target);
            }
        }
Exemple #22
0
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || target == null || !W.IsReady())
            {
                return;
            }

            if (target.IsKillable(W.Range) && W.WillKill(target) && AutoMenu.CheckBoxValue("Wunk"))
            {
                W.Cast(target);
            }
        }
Exemple #23
0
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || !_LastHitQ || _Player.ManaPercent <= ViktorLastHitMenu["QMana"].Cast <Slider>().CurrentValue)
            {
                return;
            }

            if (Q.IsReady() && _Player.GetSpellDamage(target, SpellSlot.Q) + 20 >= target.Health)
            {
                Q.Cast(target);
            }
        }
Exemple #24
0
 public static void On_Unkillable_Minion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
 {
     if (unit == null ||
         Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         return;
     }
     if (args.RemainingHealth <= Damage.QDamage(unit) && Spells.Q.IsReady() && Config.LaneClear.Checked("Q.unkill"))
     {
         Spells.Q.Cast(unit);
     }
 }
 private void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (UnkillableE.CurrentValue && (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit)))
     {
         // Check if target is in E range and killable with E
         if (E.IsReady() && E.IsInRange(target) && !IsDefileActive && target.TotalShieldHealth() < Player.Instance.GetSpellDamage(target, E.Slot))
         {
             // Cast E
             CastDefilePulse();
         }
     }
 }
Exemple #26
0
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            var minion = target as Obj_AI_Minion;

            if (minion != null && minion.IsValidTarget(SpellManager.Q.Range) && LastConfig.UseQ &&
                Player.Instance.ManaPercent >= LastConfig.LastMana &&
                Prediction.Health.GetPrediction(minion, SpellManager.Q.CastDelay) > 10 &&
                Prediction.Health.GetPrediction(minion, SpellManager.Q.CastDelay) <
                SpellDamage.GetRealDamage(SpellSlot.Q, minion))
            {
                SpellManager.Q.Cast(minion);
            }
        }
Exemple #27
0
 public static void On_Unkillable_Minion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
 {
     if (Player.Instance.ManaPercent >= Config.LasthitMenu["LhManager"].Cast <Slider>().CurrentValue &&
         Config.LasthitMenu.Checked("Q") &&
         Spells.Q.IsReady() &&
         ObjManager.CountAzirSoldier > 0)
     {
         if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
         {
             Spells.Q.Cast(unit);
         }
     }
 }
Exemple #28
0
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if ((!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModesFlags & Orbwalker.ActiveModes.LastHit) ||
                 !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModesFlags & Orbwalker.ActiveModes.LaneClear)) && !ViktorLastHitMenu["UseQ"].Cast <CheckBox>().CurrentValue)
            {
                return;
            }

            if (Q.IsReady() && _Player.GetSpellDamage(target, SpellSlot.Q) >= target.Health && _Player.ManaPercent >= ViktorLastHitMenu["QMana"].Cast <Slider>().CurrentValue)
            {
                Q.Cast(target);
            }
        }
Exemple #29
0
 public static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     /// <summary>
     ///     The E against Non-Killable Minions Logic.
     /// </summary>
     if (Vars.E.IsReady() &&
         Bools.IsPerfectRendTarget(target as Obj_AI_Minion) &&
         Vars.GetRealHealth(target as Obj_AI_Minion) <
         (float)GameObjects.Player.LSGetSpellDamage(target as Obj_AI_Minion, SpellSlot.E) +
         (float)GameObjects.Player.LSGetSpellDamage(target as Obj_AI_Minion, SpellSlot.E, DamageStage.Buff))
     {
         Vars.E.Cast();
     }
 }
Exemple #30
0
        private static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
        {
            if (!Q.IsReady() || !(Player.Instance.Mana - 40 > 150) || !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                return;
            }

            var qPrediction = Q.GetPrediction(target);

            if (qPrediction.HitChancePercent >= 70)
            {
                Q.Cast(qPrediction.CastPosition);
            }
        }