예제 #1
0
        public static void Drawing_OnEndScene(EventArgs args)
        {
            if (!getCheckBoxItem(drawMenu, "draGetWDamage"))
            {
                return;
            }

            foreach (
                var enemy in
                ObjectManager.Get <AIHeroClient>()
                .Where(ene => ene.IsValidTarget() && !ene.IsZombie))
            {
                var color = SpellManager.R.IsReady() && EventManager.IsLethal(enemy)
                    ? new ColorBGRA(0, 255, 0, 90)
                    : new ColorBGRA(255, 255, 0, 90);

                hpi.unit = enemy;
                hpi.draGetWDamage(DamageManager.GetComboDamage(enemy), color);
            }
        }
예제 #2
0
 public static bool IsLethal(Obj_AI_Base unit)
 {
     return(DamageManager.GetComboDamage(unit) / 1.65 >= unit.Health);
 }
예제 #3
0
        public static void checkr()
        {
            if (!SpellManager.R.IsReady() || CheckUlt() || !getKeyBindItem(comboMenu, "user"))
            {
                return;
            }

            var targets = EntityManager.Heroes.Enemies.Where(ene => ene.IsValidTarget(SpellManager.R.Range));
            var heroes  = targets as IList <AIHeroClient> ?? targets.ToList();

            foreach (var target in heroes)
            {
                if (Qcount > getSliderItem(comboMenu, "userq"))
                {
                    return;
                }

                if (target.Health / target.MaxHealth * 100 <= getSliderItem(comboMenu, "overk") && IsLethal(target))
                {
                    if (heroes.Count() < 2)
                    {
                        continue;
                    }
                }

                if (getBoxItem(comboMenu, "ultwhen") == 2)
                {
                    SpellManager.R.Cast();
                }

                if (SpellManager.Q.IsReady() || Core.GameTickCount - lastq < 1000 && Qcount < 3)
                {
                    if (heroes.Count() < 2)
                    {
                        if (target.Health / target.MaxHealth * 100 <= getSliderItem(comboMenu, "overk") && IsLethal(target))
                        {
                            return;
                        }
                    }

                    if (heroes.Count(ene => ene.Distance(player.ServerPosition) <= 750) > 1)
                    {
                        SpellManager.R.Cast();
                    }

                    if (getBoxItem(comboMenu, "ultwhen") == 0)
                    {
                        if ((DamageManager.GetComboDamage(target) / 1.3) >= target.Health && target.Health >= (DamageManager.GetComboDamage(target) / 1.8))
                        {
                            SpellManager.R.Cast();
                        }
                    }

                    if (getBoxItem(comboMenu, "ultwhen") == 1)
                    {
                        if (DamageManager.GetComboDamage(target) >= target.Health && target.Health >= DamageManager.GetComboDamage(target) / 1.8)
                        {
                            SpellManager.R.Cast();
                        }
                    }
                }
            }
        }
예제 #4
0
        public static void r2Kill()
        {
            if (CheckUlt() && getCheckBoxItem(comboMenu, "usews") && SpellManager.R.IsReady())
            {
                #region Killsteal
                foreach (var t in ObjectManager.Get <AIHeroClient>().Where(h => h.IsValidTarget(SpellManager.R.Range)))
                {
                    if (getCheckBoxItem(comboMenu, "logicR") && Player.Instance.IsInAutoAttackRange(t))
                    {
                        if (player.GetAutoAttackDamage(t, true) * 3 >= t.Health)
                        {
                            if (player.HealthPercent > 75)
                            {
                                if (t.CountEnemiesInRange(400) > 1 && t.CountEnemiesInRange(400) <= 2)
                                {
                                    if (t.HealthPercent < 20 ||
                                        (t.Health > DamageManager.GetRDamage(t) + Me.GetAutoAttackDamage(t) * 2 && t.HealthPercent < 40) ||
                                        (t.Health <= DamageManager.GetRDamage(t)) ||
                                        (t.Health <= DamageManager.GetComboDamage(t)))
                                    {
                                        var pred = SpellManager.R2.GetPrediction(t);
                                        if (pred.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff"))
                                        {
                                            SpellManager.R2.Cast(pred.CastPosition);
                                        }
                                    }
                                }
                            }
                        }
                    }

                    if (DamageManager.GetRDamage(t) > t.Health && t.DistanceToPlayer() < 600)
                    {
                        var pred = SpellManager.R2.GetPrediction(t);
                        if (pred.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff"))
                        {
                            SpellManager.R2.Cast(pred.CastPosition);
                        }
                    }

                    if (SpellManager.W.IsReady() && t.Distance(player) <= 250 && DamageManager.GetRDamage(t) + DamageManager.GetWDamage(t) >= t.HealthPercent)
                    {
                        var p = SpellManager.R2.GetPrediction(t);
                        if (p.HitChance == (HitChance)getBoxItem(comboMenu, "rhitc") + 4 && !didaa && !t.HasBuff("kindredrnodeathbuff"))
                        {
                            SpellManager.R2.Cast(p.CastPosition);
                        }
                    }
                }

                #endregion
            }
        }