Exemplo n.º 1
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);
         }
     }
 }
Exemplo n.º 2
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())
     {
         var predHealth = Q.GetHealthPrediction(target);
         if (predHealth > float.Epsilon)
         {
             CastQ3(target);
         }
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.W) && MenuValue.LastHit.UseW && W.IsReady())
     {
         var predHealth = W.GetHealthPrediction(target);
         if (predHealth > float.Epsilon && player.IsInAutoAttackRange(target))
         {
             if (W.Cast(target))
             {
                 Core.DelayAction(() => Player.CastSpell(SpellSlot.W), W.CastDelay + (int)player.Distance(target.Position) / W.Speed);
             }
         }
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.E) && MenuValue.LastHit.UseE && E.IsReady())
     {
         var predHealth = E.GetHealthPrediction(target);
         if (predHealth > float.Epsilon)
         {
             E.Cast(target);
         }
     }
 }
Exemplo n.º 3
0
 protected override void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target == null || target.IsInvulnerable || !target.IsValid)
     {
         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 ((Has_Stun && MenuValue.LastHit.Stop) || (Passive_Count <= MenuValue.LastHit.Stopifhas))
     {
         return;
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.Q) && MenuValue.LastHit.UseQ)
     {
         var predHealth = Q.GetHealthPrediction(target);
         if (predHealth < float.Epsilon)
         {
             return;
         }
         Q.Cast(target);
     }
     if (args.RemainingHealth <= DamageIndicator.DamageDelegate(target, SpellSlot.W) && MenuValue.LastHit.UseW && target.HasBuff("kennenmarkofstorm"))
     {
         var predHealth = W.GetHealthPrediction(target);
         if (predHealth < float.Epsilon)
         {
             return;
         }
         W.Cast();
     }
 }
Exemplo n.º 4
0
 public static void Execute()
 {
     if (MenuValue.Misc.QKS && Q.IsReady())
     {
         var Target = Q.GetKillableTarget();
         if (Target != null)
         {
             var pred = Q.GetPrediction(Target);
             if (pred.CanNext(Q, MenuValue.General.QHitChance, false))
             {
                 Q.Cast(pred.CastPosition);
             }
         }
     }
     if (MenuValue.Misc.EKS && E.IsReady())
     {
         var Target = TargetSelector.GetTarget(
             EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                t.IsValidTarget() &&
                                                !t.HasUndyingBuff(true) &&
                                                !t.HasBuffOfType(BuffType.SpellImmunity) &&
                                                t.IsInRange(player, Q.Range + E.Range) &&
                                                t.Health <= DamageIndicator.DamageDelegate(t, SpellSlot.R)), DamageType.Magical);
         if (Target != null)
         {
             E.Cast(player.Position.Extend(Target, E.Range).To3DWorld());
         }
     }
     if (Ekko_Kage_Bunshin != null && R.IsReady())
     {
         if (MenuValue.Misc.RKS && R.IsReady())
         {
             var Target = TargetSelector.GetTarget(
                 EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                    t.IsValidTarget() &&
                                                    !t.HasUndyingBuff(true) &&
                                                    !t.HasBuffOfType(BuffType.SpellImmunity) &&
                                                    t.IsInRange(Ekko_Kage_Bunshin, R.Range) &&
                                                    t.Health <= DamageIndicator.DamageDelegate(t, SpellSlot.R)), DamageType.Magical);
             if (Target != null)
             {
                 var pred = Prediction.Position.PredictUnitPosition(Target, 500);
                 if (pred.IsInRange(Ekko_Kage_Bunshin, R.Range))
                 {
                     R.Cast();
                 }
             }
         }
     }
     if (Orbwalker.ActiveModes.Combo.IsOrb() || !MenuValue.Auto.NotCombo)
     {
         if (Ekko_Kage_Bunshin.CountEnemyHeroesInRangeWithPrediction((int)R.Range, 500) >= MenuValue.Auto.ChampHit)
         {
             R.Cast();
         }
         if ((MenuValue.Auto.EnablePred ? Prediction.Health.GetPrediction(player, 500) : player.Health) < MenuValue.Auto.HP)
         {
             R.Cast();
         }
     }
 }